Re: Visual Stuido .net question
From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 03/12/04
- Next message: Jonas Hansson: "Re: Visual Stuido .net question"
- Previous message: Ward: "Re: Q about statement in Shtern's Core C++ A Software Engineering Approach"
- In reply to: Jenski182: "Visual Stuido .net question"
- Next in thread: Jonas Hansson: "Re: Visual Stuido .net question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Mar 2004 17:40:43 +0100
Jenski182 wrote:
>
> You know when you have compliedm linked a program, then you execute it and it
> starts up, how do you set it so it says "Press any key to continue" once the
> programs run before terminating so you can actualy see what it did?
By adding the code to
* output the text "Press any key to continue"
* having the program to wait until 'any key' was pressed.
at the end of main.
Note: the later cannot be done with standard C or standard C++.
You will need platform/compiler specific extensions to do that.
Thus it is often easier to just have the program wait for some
text or a single character to be input. ( even an empty text input
is still a text input. Your user will have to press return. But anyway
this is simpler then having your user call you: The programm tells me
to press the any key. Where is that key located on my keyboard? )
-- Karl Heinz Buchegger kbuchegg@gascad.at
- Next message: Jonas Hansson: "Re: Visual Stuido .net question"
- Previous message: Ward: "Re: Q about statement in Shtern's Core C++ A Software Engineering Approach"
- In reply to: Jenski182: "Visual Stuido .net question"
- Next in thread: Jonas Hansson: "Re: Visual Stuido .net question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|