|
From: Roger A. F. <ra...@ha...> - 2004-07-21 09:19:47
|
Aloha from Honolulu,
I just subscribed to the mailing list. I hope this is the right place to
ask questions.
I don't know which version came on the CD because as I proceeded with
the installation I was asked if I wanted the latest version and of
course I clicked "Yes". The story so far: I purchased "Sams Teach
Yourself C++ in 24 hours" by Jesse Liberty. The book included a CDROM
with all the source code for the exercises and the Dev-C++ IDE (as well
as a command line compiler and a debugger I haven't gotten to yet). The
"About" under the Help menu lists my current version as "Version 4 Build
on: 9/21/00 11:22:34PM". Clicking on "Check for Updated Version" returns
a notice that such exists. But as your web page warns of earlier
programs not compiling under this new version, I think I'll wait.
My immediate need is covered in the FAQ under the Help menu. The
question #2. "When executing my dos program, it closes automatically.
How I can change this ?" gives a little snippet of code:
#include <stdlib.h>
int main()
{
system("PAUSE");
return 0;
}
When I tried to include this in my program I got the following error
mesage in the compiler window:
"c:\dev-c_~1\examples\hello\pause.cpp:6: parse error before character 0223"
And the color of "PAUSE" (including the quotes) is red in the help file,
but shows up black in my source.
I tried unchecking the "Create for win32" in Compiler Options and also
tried working within a project and unchecking the "Do not create a
console" in Project Options. Neither had any effect--in fact they were
not checked to begin with. In earlier lessons I was able to use this
little bit:
#include <iostream>
int main()
{
char quit;
while (quit != 'q')
std::cout<<"Press q to quit " << std::endl;
std::cin>>quit;
return 0;
}
to keep the DOS window open. But this isn't possible in some cases (as I
discovered).
I hope you can help me with this problem and let me know via email. Or
tell me where to look if this gets posted somewhere.
Mahalo (Thank You),
Roger Furer
ra...@ha...
|