|
From: Ramana K. <ra...@my...> - 2002-07-19 12:08:02
|
add #include <cstdlib> to the top of your program.
also add using std::system;
then before the end of your main function put this line:
system("PAUSE");
also... this won't affect your program so drastically, but main should
return int, not void, so you should return 0; after system("PAUSE)"; also, i
think your function definitions are meant to go outside of the main()
function, but i'm not sure.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of shankar
Sent: Sunday, 14 July 2002 2:47 AM
To: ha...@bl...; dev...@li...
Subject: [Dev-C++] (no subject)
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
|