[gameprogrammer] Re: Simple C++ Program
- From: "Mustafa Shaik" <symadept@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Tue, 26 Sep 2006 02:16:40 -0700
Even simply u can use
getch(); linked by conio.h
this also can help.
On 9/26/06, Mark Silence <madasi@xxxxxxxxx> wrote:
On 9/25/06, Craig Chambers <reym_camroth@xxxxxxxxx> wrote:
> hi,
> this may be a little off topic, but i have a small
> problem. every time i write a small program (i'm just
> learning too) and i add a scanf() or cin line to the
> end of my program to make the program wait so i can
> see the results, it ignores the first one, so i have
> to put 2!!!!!!! is this wierd or am i doing somthing
> wrong?
> it only happens if earlier in the program i have asked
> for user input. I'm using bloodshed's devc++. am i
> doing something wrong with my user input earlier in
> the program?
>
I generally use
system("PAUSE");
to hold the output on the screen until I'm ready.
--
Mark Silence | Blog? Isn't it mandatory?
Madasi@xxxxxxxxx | http://madasi.blogspot.com/
"I reject your reality, and substitute my own!"
- Adam Savage, Mythbusters
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: Simple C++ Program
- From: Mike Gillissie
- References:
- [gameprogrammer] Re: Simple C++ Program
- From: Jake Briggs
- [gameprogrammer] Re: Simple C++ Program
- From: Craig Chambers
- [gameprogrammer] Re: Simple C++ Program
- From: Mark Silence
Other related posts:
- » [gameprogrammer] Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
- » [gameprogrammer] Re: Simple C++ Program
On 9/25/06, Craig Chambers <reym_camroth@xxxxxxxxx> wrote: > hi, > this may be a little off topic, but i have a small > problem. every time i write a small program (i'm just > learning too) and i add a scanf() or cin line to the > end of my program to make the program wait so i can > see the results, it ignores the first one, so i have > to put 2!!!!!!! is this wierd or am i doing somthing > wrong? > it only happens if earlier in the program i have asked > for user input. I'm using bloodshed's devc++. am i > doing something wrong with my user input earlier in > the program? >
I generally use
system("PAUSE");
to hold the output on the screen until I'm ready.-- Mark Silence | Blog? Isn't it mandatory? Madasi@xxxxxxxxx | http://madasi.blogspot.com/ "I reject your reality, and substitute my own!" - Adam Savage, Mythbusters
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- [gameprogrammer] Re: Simple C++ Program
- From: Mike Gillissie
- [gameprogrammer] Re: Simple C++ Program
- From: Jake Briggs
- [gameprogrammer] Re: Simple C++ Program
- From: Craig Chambers
- [gameprogrammer] Re: Simple C++ Program
- From: Mark Silence