[Dev-C++] wait, i might have something
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Kenneth A. <dig...@ho...> - 2002-04-12 15:37:34
|
well i tried something different. in the console programs that i was trying
to run in a dos window, i set up something like this:
int main()
{
// code
return 0;
}
that type of program would flash on and off, so it was impossible to use it.
but then i tried this:
void main()
{
//code
}
and that particular program did not flash on and off. it stayed on the
screen. but i thought that using void in the main function was considered
bad programming etiqutte and that you should always try to return a value to
the operating system. what's the deal?
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
|