|
From: Ioannis V. <no...@ya...> - 2002-01-27 03:55:08
|
Nor getch() nor textcolor() are ANSI C/C++ functions. They are considered as system extensions. Dev-C++ has getch() but since textcolor() is about graphics in dos, you are looking for some C/C++ graphic library (e.g. alegro). Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys -----Original Message----- From: Dan...@ao... [mailto:Dan...@ao...] Sent: Sunday, January 27, 2002 3:15 AM To: no...@ya... Subject: Re: [Dev-C++] Giving up Here is the code verbatim: #include <stdio.h> #include <conio.> int main() { int ch; textcolor(BLUE); printf("%s", "Hello world, this text should be Blue."); ch = getch(); \\ I looked and getch() is in the conio header file } I had no problems compiling it, but the linker kicked out an error message stating that textcolor definition could not be found. The only possible solution to this problem could be the include directory in my setup so maybe I should change it to the G++ one. What do you think? I want to kindly thank you for your response and look forward to communicating more with you in the near future. Thanx Danny. |