Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ question

Name: Newbie 2011-06-20 11:15

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: Anonymous 2011-06-20 11:16

finaly a question at /prog/s lvl

Name: Anonymous 2011-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: Anonymous 2011-06-20 11:26

did some one mentiont that prog answers just at the lowlvlst question?

Name: Newbie 2011-06-20 11:27

Thanks :)
Btw. Is C++ good start for newbie ? Or should I start from something like PASCAL :P ?

Name: Anonymous 2011-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: Newbie 2011-06-20 11:39

Thanks.
So I keep learning C++.


(sorry for mine poor language and all mistakes I've done)

Name: Anonymous 2011-06-20 12:05

Read SICP.

Name: Anonymous 2011-06-20 12:15

Don't listen to >>6
C++ is one of the worst languages for teaching anti-patterns
You're doomed to a life of mediocrity

Name: Anonymous 2011-06-20 12:38

getch() is not C++, it's some C bullshit that makes it way into most C++ tutorials due to C developers thinking they can write C++

Name: Anonymous 2011-06-20 12:50

sum prlp wen facd w/ a problem dey think 'i no use regaxum ' now their 2 probloms

Name: Anonymous 2011-06-20 15:58

if you consider to be a profesional you will so or so  need to learn c++ and c

Name: Anonymous 2011-06-20 16:05

>>10
Wasn't it some Borland bullshit?

Name: Anonymous 2011-06-20 16:18

“Bad programming is easy. Idiots can learn it in 21 days, even if they are Dummies.”

>>13
Yeah it was. Some of my mates still use Turbo C++ nowadays.

Name: Anonymous 2011-06-21 3:40

1) Don't. Dumb. Stop. Hammer time.
2) 0:printf(stdout,.. / 1:printf(stderr,.. (maybe !(2))
3) Don't. Dumb. Stop. Hammer time.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List