syntax error : missing ';' before 'type'
程序代码:
#include"stdio.h" #include"Windows.h" #include"stdlib.h" int main(void) { char title[100]; HWND hwnd; GetConsoleTitle(title,100); hwnd=FindWindow(NULL,title); MoveWindow(hwnd,500,500,300,300,TRUE); char *p="hello world"; system("pause"); return 0; }
为何这个程序运行后会出现这个错误?如何修改?
syntax error : missing ';' before 'type'