Printing a character at a certain coordinate

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?
windows or linux?
So Windows, hm, can someone help me analyze this guys program? >.< I'm sorry, I'm not that good
Just copy the stuff in the first post into your program. Then you can use the functions:

183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#include <iostream>
#include <string>
using namespace 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;
}

Hope this helps.
Ok, I see, so can you explain IsKeyPressed() and GotoXY(), and Finalize() in greater detail? I've got it, but can you explain a bit more? ^_^
Topic archived. No new replies allowed.