-
If Statement
Hi All,
Just got a quick question,
If it possible to find out if there is a value in a certain location?
for example
Code:
if (gotoxy(1,5) == number)
in other words can gotoxy be used to find a variable?
i cant try it cos im at work and have no compiler.
This is just one of my whacky ideas!!
Cheers guys
Boon
-
>in other words can gotoxy be used to find a variable?
No, but other conio.h (assuming you're using that) functions can be used to read from the screen buffer. Provided you know the coordinates you can use this:
Code:
#include <conio.h>
int gettext(int left, int top, int right, int bottom, void *buffer);
-