-
Beginner question
Today is the first time I started learning C++, or any language for that matter.
I'm using Bloodshed Software's Dev-C++. The tutorials offered here said to copy some example code into a file (which is what I have, right?), save the file, and then open the file in a compiler. I thought I did this all right, but when I ran the file, a window just flashed before I could even see what it was. Is that supposed to happen?
-
Yes, just you a system pause to wait for a little or add a
statement to the end and the console app will stay open until you press enter.
-
int main()
{
cout<<"HEY, you, I'm alive! Oh, and Hello World!";
return 0;
}
add cin.get () ; here? When I did, errors occured, and it wouldn't run.
-
Sorry about that, guess I should be more specific:
Code:
int main()
{
cout<<"blah, blah";
cin.get();
return(0);
}
-
YAHOO!!! My first crappy program!!! Thanks!
-
heh, i know just where you are... I loved that. I was so happy just to be able to type words on the screen.:D