* Don't use system("pause") to pause your program if possible. Use getchar( ) if you are using C and cin.get( ) if you are using C++.
Why is that? A reasonable explanations for those tips would help to learn.
neithan
1
Junior Poster in Training
Recommended Answers
Jump to PostYes but, why don't use system("pause") at all? I mean what's wrong with it?
>system("pause");
This is all kinds of wrong. First, while system is a standard function and thus portable, the argument you pass to it cannot be portable because …
Jump to Post
* Don't use system("pause") to pause your program if possible. Use getchar( ) if you are using C and cin.get( ) if you are using C++.
Why is that? A reasonable explanations for those tips would help to learn.Yes but, why don't use system("pause") at all? I mean …
All 7 Replies
ugyen t
0
Newbie Poster
neithan
1
Junior Poster in Training
Dave Sinkula
2,398
long time no c
Team Colleague
neithan
1
Junior Poster in Training
mvmalderen
2,072
Postaholic
neithan
1
Junior Poster in Training
marco93
-87
Junior Poster
iamthwee
commented:
Hai marco93, now a couple of post back I gave you +rep by accident. So this is me correcting my mistake. Salut!
-2
mvmalderen
commented:
You're just extremely useless.
-1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.