does C++ have anything for cursor control similar to C's gotoxy()?
Printable View
does C++ have anything for cursor control similar to C's gotoxy()?
There is nothing standard to C++ for such a thing, but depending on your platform there are other ways to do it. (see the faq if you don't believe me).
Btw, I got a good chuckle out of your avatar.
And, BTW - it's not standard in C either! Almost everything that's standard in C is part of C++.
In standard ISO/ANSI C++ there are no colors, no graphics, and no sound. :(
A standard-compliant C++ program will run on a system with only a keyboard, text display, and disk storage.
All of these "extras" depend on your hardware, operating system, and compiler.
This is why most commercial programs are available for only one platfform.... They have platform specific code.
I am familiar with the differences between standard and non-standard....
>A standard-compliant C++ program will run on a system with only a keyboard, text display, and disk storage
Bzzzt! The standard doesn't assume that you have a keyboard or a display, and many conforming programs run quite happily on machines without both. Oh yea, the standard doesn't assume disk storage either. ;)