无法输出代码 有什么错误吗
#include <stdio.h>
int getAge(numPeople)
{
int age;
if(numPeople==1)
age=10;
else
age=getAge(numPeople-1)+2;
return age;
}
int main()
{
int fifthAge=getAge(5);
printf("第5个人的年龄是%d岁", fifthAge);
return 0;
}
符号确定都是对的?
我指的是输入法你用的是英文的么?
刚才我也出现类似的错误代码,就是标点搞错了
望采纳
error: stray '\357' in program
error: stray '\273' in program
error: stray '\277' in program
error: stray '#' in program
error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
In function 'main':
warning: incompatible implicit declaration of built-in function 'printf'
warning: no newline at end of file
输出的错误是这个 don't know