I'm learning Gotoxy and how to use it, I read in the faqs about it but I got a problem, I use DevC++ and my project is in C.
Code:
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE), coord);
there is an error in this statement
C:\Dev-Cpp\main.c `STD_OUTPUT_H' undeclared (first use this function)
Code:
#include<stdio.h>
#include<windows.h>
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE), coord);
int main()
{
printf("Hello!");
gotoxy(10,10);
printf("Hello!");
getch;
return 0;
}