error C2447: “{”: 缺少函数标题(是否是老式的形式表?
错误 C2447 “{”: 缺少函数标题(是否是老式的形式表?)程序代码:
void Welcome(); { initgraph(1200, 800); playsound(TEXT("./fire/happy.mp3"),NULL,SND_LOOP|SND_FILENAME|SND_ASYNC) srand((unsigned int)time(NULL)); settextstyle(80, 0, TEXT("仿宋")); while (!kbhit()) { settextcolor(RGB(rand() % 150, rand() % 150, rand() % 150)); outtextxy(300, 500, TEXT(" ")); outtextxy(350, 550, TEXT("")); } }