MC felon wrote:
Quote:
Quote:
They are defined in non standard borland header for C conio.h It exists
for console 16 bit platform, while devcpp (runs with gcc) is a 32 bit
platform.
If you really need it (i dont think, it is impossible to live without
this file.) use the follwoing link
http://devpaks.org/details.php?devpak=16
This is a 32 bit version of the library and can be used with GCC.
However how old is the library is, or functioning properly with the
current version, I dont know (It used to work, 2-3 yeasr ago, when once
I used this library) .
abir
>
is there any alternative to getch() ?? or gotoxy()?
(by the way: Pack Man was unsuccessful in recognizing this DEVPAK)
getch equivalent in std c++ is cin.get() ; If you need it just to pause
the system , can use system("PAUSE") //only for windows! (PAUSE is a
windows system call) .
gotoxy is nonstandard. And I dont know about the link , once it was
there & working.
If you want to implement it by urself, you need to use system call for
it. For mingw and windows it is pretty simple , include windows.h, and
use the windows call as,
void gotoxy(int x, int y){
::SetConsoleCursorPosition (::GetStdHandle (STD_OUTPUT_HANDLE),
(COORD){x, y});
}
Dont forget to link appropriate library! Other platform consult the
system API ...
Cheers!