Thanks, but I already knew the first part of my routine works. I use it a lot in my programs. It's the second part of gotoXY that doesn't. I am wanting to send to the x,y coordinates, a string that has variables in it.
I have tried it three ways :
1 : string text = "This is printing at " << x << " and at " << y << ".";
gotoXY(3, 7 , text);
2: gotoXY(3, 7, "This is printing at " << x << " and at " << y << ".");
3: gotoXY(3, 7, "This is printing at " + x + " and at " + y + ".");
All I get are errors. Is there an easy way make the integer variables a part of the string, so it can be printed along with the text?
( I think I should not have put the first part of gotoXY(x , y) under the code label, and only printed the gotoXY(x,y,text) part. Sorry for any misconstrued info.. )