c语言的错误:declaration syntax error是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/05/18 00:15:08
#include "stdio.h"
#include "conio.h"
textbackground(5)
textcolor(6)
main()
{
int x,y;
for(x=1;x<12;x++)
for(y=1;y<26;y++)
putch('*');
printf("\n");
}

一般只要C语言非法语法都会提示
declaration syntax error
那么你的问题是:
textbackground(5)
textcolor(6)
出现问题,没有语句结束符“;”

declaration syntax error
声明的语法错误

说的是下面这两句:
textbackground(5)
textcolor(6)

declaration syntax error
的意思是声明时语法错误。也就是程序中
的这两行
textbackground(5)
textcolor(6)
应该改为
textbackground(5) ;
textcolor(6) ;