运行时 void GotoXY(int x, int y)显示“ 此声明没有存储类或类型说明符 ”这是为什么呢?

#include
#include
#include
#include
void HideCursor(int x)//x=0隐藏光标,现显示光标
{
CONSOLE_CURSOR_INFO cursor_info = { 1, x };
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
}
void SetColor(int color)
{
HANDLE consolewnd;
consolewnd=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consolewnd,color);
}
void GotoXY(int x, int y)

你代码不完整,GotoXY没有实现,里面还使用了全角的标点符号。

要么就是你的参数填写错误,要么没加类名 你把完整代码发上来就知道了