Hey all. I am new in programming in C++ but i've got small question and i am confused. Is there any big difference in working between these three endings of programs ?
1)
getch();
2)
return 0;
3)
system ("pause");
Name:
Anonymous2011-06-20 11:16
finaly a question at /prog/s lvl
Name:
Anonymous2011-06-20 11:23
1 - wait for you to press any key, the function returns what key you pressed (well something like that)
2 - ends the program (or subprogram)
3 - wait for user to press any key, the system function executes a system command. If you write pause in a cmd or bat file it has the same effect
These are also all available in C, learn the difference between C and C++
Name:
Anonymous2011-06-20 11:26
did some one mentiont that prog answers just at the lowlvlst question?
Name:
Newbie2011-06-20 11:27
Thanks :)
Btw. Is C++ good start for newbie ? Or should I start from something like PASCAL :P ?
Name:
Anonymous2011-06-20 11:33
learn C++ learnig the basic of a language is the smalest part the big part comes with the liberys and the dificult of that is prty mutsh the same in any language
Name:
Newbie2011-06-20 11:39
Thanks.
So I keep learning C++.
(sorry for mine poor language and all mistakes I've done)