|
From: Daniel G. <sp...@ho...> - 2002-07-13 17:44:44
|
Yes, your program runs correctly and has closed (because it has finished).
I always put
int Input;
cin >> Input;
before the return command.
That will work fine, as the window will stay open b/c the program will
finish once the user types a number and hits return.
P.S. Someone will come along and tell you to use SYSTEM("PAUSE") but don't
listen to them - the Glenfield standard defines this as the most _wicked way
of doing your thing ;)
>From: shankar <nis...@ya...>
>To: ha...@bl..., dev...@li...
>Subject: [Dev-C++] (no subject)
>Date: Sat, 13 Jul 2002 09:47:14 -0700 (PDT)
>
>
>Hi guys,
>
>You have created a wonderful programe. Thanks!!
>
> But, I tried to run this programme, the compile was succces but, when i
>tried to run, it just popup and gone.what is the problem.please help.
>
>p.s: i have downloaded all the patches from the web site.
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>#include <iostream.h>
>
>void main()
>{ void heading () ; //define functions
> void question_my ();
>
> heading (); //start programe
> question_my ();
>} //end main function
>
>//*******************************************************
>
>void heading ()
>{
> cout << "PGCC FORD DEALERSHIP WEEKLY INVENTORY \n" ;
> cout << "SALESPERSON : Shankar Siva \n" ;
>} //end of heading function
>//*******************************************************
>
>void question_my()
>{
> cout <<"Please Enter Model Sold:\n" ;
> cout <<"Please Enter Sticker Price:\n" ;
> cout <<"Please Enter what the Customer Paid:\n" ;
>
>
>}
>
>
>
>Have a nice day,
>
>SHANKAR
>
>
>
>
>
>
>
>---------------------------------
>Do You Yahoo!?
>Yahoo! Autos - Get free new car price quotes
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|