If you're only going to be using it in Windows simply make sure to 
#include <stdlib> at the beginning then have it run system("pause"); 
before the code ends, ex:

//-----------------------//
#include <stdlib.h>

using namespace std;

int main()
{
    system("pause");
    return 0;
}
//-----------------------//

If you wanted to learn how to write software for multiple platforms you 
probably wouldn't be using MSVC++ so in that case this is your simplest 
solution although not always the best.

Anil . R. Nair wrote:

>Hi Gurus,
>
>I am a child in the software field and started to develop in C++ 2 days ago!!. 
>i am working with msvisual c++. somebody can help me in an introductory 
>problem.
>
>i made a program, compile, link and run fine?
>
>the problem is once the programe runs (in DOS prompt.) then it terminates 
>immediately within a blink of time. I cannot see the result in the screen. 
>somebody tell how can i pose the scree for a press-any-key.
>
>thanks in advance.
>
>anil
>
[snip]

-- 
http://www.geocities.com/ntws01/
http://ntws01.blogspot.com/






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at 
http://www.eScribe.com/software/C-Paradise/

>------------------------------------------_->


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/C-Paradise/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to