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

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

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

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

 

 

出错原因:

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

 

你可能感兴趣的:(c,ubuntu)