Here. And don't forget to read the documentation. A good tutorial site can be found here.

02-03-2008

dudeomanodude

Quote:

Originally Posted by Devils Child

i have the same problem and ncurses(.h) is not found by C++

ncurses is not standard header file. meaning, you have to link to it, which of course means you have to have it installed in your system first in order to work.

if portability is not of concern, then by all means, go with windows.h and use gotoxy, otherwise, install ncurses or pdcurses in your system, usually for usage in windows this means copying a dll to c:\windows\system32 and finding the appropriate linker command (should be in the documentation of the library).

02-03-2008

Devils Child

the windows.h include file does not support gotoxy(). thats what VS C++ said...
portability - do you mean between operating systems? i mean - this IS portable to ALL other windows based computers when i use windows.h?

02-03-2008

dudeomanodude

right portablility means between OS. including windows.h in a win32 app should work on any 2000/XP machine, and I would imagine it should work just fine with vista too (if it's a simple console app)

right, I think gotoxy like you said is in conio.h, another non-standard header. i do know there is a similar function in windows.h, although the name of this function eludes me right now, it's something like SetCursorPosition() or something of the sort.

Personally, I would find the windows.h function and use that if this program is for your benefit only.