In Visual C++ the header file "conio.h" doesn't work. Do you know
where i can find a way to make goto(x,y) work?
In Visual C++ the header file "conio.h" doesn't work. Do you know
where i can find a way to make goto(x,y) work?
conio.h in VC++ doesn't contain gotoxy. conio is a nonstandard header so it's a toss-up whether or not the function you want will be supported. Look in the cprogramming.com FAQ for a way to write your own gotoxy for Windows.
-Prelude
My best code is written with the delete key.
Declare that and you can call it just as if it were in conio.h.Code:void gotoxy(int x, int y) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); }
BTW, dimentions are 80X50 i think.
My conio.h is screwed up bad.
I looked in it and found line with some getch() code but when i included it and tried using getch() it doesnt work!!
And isnt clrscr() in conio too?
That one aint working either...
What's wrong????
Have you tried _getch() and _clrscr()?Originally posted by ErionD
My conio.h is screwed up bad.
I looked in it and found line with some getch() code but when i included it and tried using getch() it doesnt work!!
And isnt clrscr() in conio too?
That one aint working either...
What's wrong????
What errors do you get, exactly?
>That one aint working either...
Well, you could think portably and just not use conio.h
-Prelude
My best code is written with the delete key.
That's how to manage without conio.h
http://www.cprogramming.com/cboard/s...3&pagenumber=2