Confusing Operating System Functions

closed account (3voN6Up4)
I am not sure where to begin at all, I am pretty sure I have to use this:

 
SetConsoleCursorPosition()


in my program, but I am very confused as to how that works. Can somebody elaborate? Here is what I am working on:

"Write a program that displays the word UP on the bottom line of the screen a couple of inches to the left of center and displays the word DOWN on the top line of the screen a couple of inches to the right of center. Moving about once a second, move the word UP up a line and the word DOWN down a line until UP disappears at the top of the screen and DOWN disappears at the bottom of the screen."

So far I have:
1
2
3
4
5
6
7
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
   SetConsoleCursorPosition()
}


I don't know the coordinates of the bottom of the screen generally, or the top of the screen if I need to know that.
Topic archived. No new replies allowed.