|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
Some quick help with Bloodshed Dev C++
Hi, I am doing the C++ tutorial at www.cplusplus.com and I have a quick question on it. On the very first part, where you simply make the program that says Hello World :
// my first program in C++ #include int main () { cout << "Hello World!"; return 0; } After you compile it, then execute it, is it suppose to just flash up on the screen really quick? If so, what paramaters do I change so I can actually see the "program". Thank you for your help. |
|
|
|
|
|
#2 |
|
Security Dude
Staff
|
I was just going to post the same question. It pops up in a Dos window and goes for about a second, not long enough for you to read it. I am running XP. Does anyone know what is wrong?
THANKS, |
|
|
|
|
|
#3 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
this should help with your questions, or at least point you in the right direction.
HTH and happy coding ![]() http://forums.devshed.com/archive/42/2002/11/1/46388 |
|
|
|
|
|
#4 |
|
Security Dude
Staff
|
Thanks alot! it works great now!
|
|
|
|
|
|
#5 |
|
Professional gadfly
|
Either you can add the System("pause") line, or you can open up a command prompt window and run the program from there. I usually do the latter.
|
|
|
|
|
|
#6 |
|
Member (9 bit)
|
When I do System("pause"); i get a implicit declaration of function `int System(...)`, how do I make it work and what does htat mean? Thanx.
|
|
|
|
|
|
#7 |
|
Professional gadfly
|
C++ is case sensitive, so it should be lowercase system("pause"). I am just in the habit of capitalizing things, my bad.
Also, make sure you put #include |
|
|
|
|
|
#8 |
|
Member (9 bit)
|
It now works. THANK YOU VERY MUCH
|
|
|
|
|
|
#9 |
|
Member (8 bit)
Join Date: Dec 2002
Posts: 186
|
i think there must be a lot of people tryin to start programming cos i just came on the forum wanting to ask the exact same question??!!!**
|
|
|
|
|
|
#10 |
|
Member (10 bit)
|
I encountered this same problem when I first started programming in C++ (about a year and a half ago). I fixed it with a simple cin statement at the end of the program.
char a; cout<<"Press a key to Exit"; cin>>a; |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|