|
From: P.D. v. Z. <pa...@my...> - 2003-10-10 10:13:36
|
What kind of advice is that? :| Do you know anything about C or C++ at all? C does not know about the concept of namespaces, so "using namespace std" would only generate an error. As for the C++ "#include <conio>", this will not work either. conio is not, never was, and never will be a standard header, and trying to include it in the C++ header fashion won't make any difference whatsoever, you'll still get errors. And of course, conio.h isn't a standard header for C either, so the chances of "#include <conio.h>" working are small too. MingW provides a contributed (and broken) conio implementation, because so many Borland and Microsoft users think this header is standard, and come crying to the lists when it doesn't work on a standards-compliant compiler. My advice is to avoid conio at all costs. For Win32 you're much better off using the Win32 API to accomplish the same tasks (positioning the cursor, etc), and for true DOS console manipulation you should be using a different compiler (try DJGPP for example), because MingW is for Win32, and creates only Win32 executables. You could also look for a "curses" implementation, which tends to be a bit better at cross-platform compiling, and is a true third-party library, not something people expect to be standard but isn't. Regards, Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Alvin Thompson Sent: Friday, October 10, 2003 12:41 AM To: al...@vi...; co...@gm...; dev...@li... Subject: Re: [Dev-C++] conio for c++: #include <conio> for c: #include <conio.h> for both: using namespace std hth, alvin ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ 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 |