Help needed with strange initializing

Hey guys, I have a question about the Gotoxy function.

gotoxy(0,10);
cout << "Martin";

Without doing string a = "Martin"; gotoxy(0,10); cout << a; ....

Is there a way to create a variable (string) who would get the 5 caracters of the output Martin at position (0,10) and initialize it to the variable?

ex)
gotoxy (0,10);
read ou get (value of the 5 caracters or all the line);
set (the values in a variable);

Thank you.
Please don't double post - http://www.cplusplus.com/forum/general/181028/

Just wastes people's time.
closed account (E0p9LyTq)
OnurDuzgun wrote:
Hey guys, I have a question about the Gotoxy function.

Not a C/C++ standard library function.
http://www.cplusplus.com/forum/beginner/28859/
closed account (E0p9LyTq)
See also:
http://www.cplusplus.com/forum/general/33846/
Topic archived. No new replies allowed.