So, in a program I'm making, I have an idea, that I can print the character background first, then print another layer on top of the background. Can I do that? But I need to be able to place a single character at a certain position, what function does that?
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
int width, height;
if (!Initialize( width, height ))
{
cerr << "Foo! You must be a human!\n";
return 1;
}
ClearScreen();
string s = "Hello world!";
GotoXY( (width + s.length())/2, height/2 );
cout << s << flush;
while (!IsKeyPressed( 250 )) { } // wait for user to press a key
Finalize();
return 0;
}