I have installed NetBeans IDE 6.7.1 and installed the MinGW compiler
for the C/C++ plugin, all was ok until i have to use <ncurses.h> for a project and it doesn't exist.
Can you please tell me where to get it and how to install it???
plz...it's for a paper in my university.
I have to handle the program with something like this:
#include <ncurses.h>
int main(int argc, char **argv)
{
int X = 10;
int Y = 10;
int ch;
initscr();
noecho();
keypad(stdscr,TRUE);
move(Y, X);
printw("M");
refresh();
do
{
ch = getch();
move(Y, X);
printw(" ");
switch(ch)
{
case KEY_UP: Y--; break;
case KEY_DOWN: Y++; break;
case KEY_LEFT: X--; break;
case KEY_RIGHT: X++; break;
}
move(Y, X);
printw("M");
refresh();
}
while (ch!=27);
endwin();
return 0;
}
Biggggggg THNX in advance.