system.h

i am using visual basic 2010 xpress ... for c++ prodramming.
i am unable to include <system.h> header
waht i can do??
i need to include this file because i want to use

gotoxy(short int row, short int col);

... please help me //
The system.h you are talking about is a non-standard header provided only by Borland. (well, I suppose some others have headers called system.h too, but none of those have a gotoxy function inside).

You can create a function like that quite easily using the WinAPI though.
would you like to tell me how i can use WinAPI ?? because i have no more knowledge about it ??
http://msdn.microsoft.com/en-us/library/bb384843.aspx

Note that it is nothing you can read, learn and apply within 5 minutes.
1
2
3
4
5
6
7
8
9
10
11
12
#include <windows.h>

void gotoxy( int column, int line )
  {
  COORD coord;
  coord.X = column;
  coord.Y = line;
  SetConsoleCursorPosition(
    GetStdHandle( STD_OUTPUT_HANDLE ),
    coord
    );
  }

Hope this helps.
thank you bro
Topic archived. No new replies allowed.