ubuntu C 编程

来源:互联网 发布:为人父母方知父母恩 编辑:程序博客网 时间:2024/06/04 19:36

我在ubuntu下运行C时,出现这样的问题:

error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘{' token

error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ 

 

 

出错原因:

              在函数声明的结尾没有加“;”

 

原创粉丝点击