|
From: Scott S. <age...@co...> - 2004-07-21 15:44:16
|
Roger Allan Furer wrote: > 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. I have no problem with compiles in the newer version. Consider downloading 4.9.8.0 from the website, www.bloodshed.net. Then, upgrade to 4.9.8.10. Version 4 isn't supported anymore. In fact, the compiler Dev-C++ uses, MinGW, is more reliable than Microsoft's compiler for me! > 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; > } A better solution is to include <iostream> and use cin.get(). It is more portable, and would look like this: #include <iostream> using namespace std; int main() { cin.get(); 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. You can change the colors used by going to Tools->Editor Options->Syntax > > 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. In general, upgrading to 4.9.8.0 and then getting the 4.9.8.10 update is probably the best. > > Mahalo (Thank You), > Roger Furer > ra...@ha... > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |