"Petter" <n64emu@usa.net> wrote:
>When I run the code below the program writes "ab" on (20,20) but I want

>to be "a" on (1,1) and b on (20,20). How do I make that happen???

hi Petter try this:-
#include<iostream.h //for cin & cout
#include<conio.h> //for gotoxy

int main()

gotoxy(1,1); //position cursor
cout<<'a'; // print at that position
gotoxy(20,20); position cursor
cout<<'b'; // print at that position
cin.get()// pause the run screen

return 0;


It works on my machine
Try and reply