In QBasic you could write:
locate 5, 5
print "Hello"
And it would print the string wherever you wanted onto the console. What function does this in c++ and in what header file? I'm using RHLinux 7.2 with gcc-c++ > 2.96
Thanks,
rdnjr
In QBasic you could write:
locate 5, 5
print "Hello"
And it would print the string wherever you wanted onto the console. What function does this in c++ and in what header file? I'm using RHLinux 7.2 with gcc-c++ > 2.96
Thanks,
rdnjr
-----------------------
R. D. Nichols, Jr.
-Why do I have to go EVERYWHERE in this handbasket?
that's the code if you are using msdos.. if you want to do same with linux you have to you ansi codes..Code:gotoxy(5,5); printf("Hello");
Oops.. didn't read that =POriginally posted by rdnjr
I'm using RHLinux 7.2 with gcc-c++ > 2.96
Try
This is quite tricky.. "\e" is escape (press twice, then you should see "^[").. I recommend making own function for it =)Code:printf("\e[5;5HHello");
For other ansi codes, check this url: http://www.viking.delmar.edu/Courses...5L/ANSIsys.htm