ok so I'm trying to learn C and C++, and whenever I execute the program it runs in the blink of an eye and I don't have time to see what it says, I remember there being a pause command or something that I could put in there somewhere that would wait for me to press enter, can you tell me where to put it and exactly what it's called? thank you
2007-11-15
14:56:52
·
6 answers
·
asked by
ted-m
2
in
Computers & Internet
➔ Programming & Design
#include
int main()
{
printf("This is a line of text to output.\n");
printf("And this is another ");
printf("line of text.\n\n");
printf("This is a third line.\n");
return 0;
}
(thats an example of the code that the program has (its a very basic program) and please repost that with the added function or whatever it's called in C/C++
2007-11-15
15:05:00 ·
update #1