为什么每次都运行不对?大神帮忙!
int a()
{printf("小明在慕课网上学习");
return 0;
}
int b(int n)
{
printf("小明在慕课网上学了%d门课程",n);
return 0;
}
int main()
{
a();
b(5);
return 0;
}
int a()
{printf("小明在慕课网上学习");
return 0;
}
int b(int n)
{
printf("小明在慕课网上学了%d门课程",n);
return 0;
}
int main()
{
a();
b(5);
return 0;
}
2015-12-03
/249/5442/As0n/hello.c: In function 'a':
/249/5442/As0n/hello.c:9:1: error: stray '\357' in program
{printf("小明在慕课网上学习");
^
/249/5442/As0n/hello.c:9:1: error: stray '\274' in program
/249/5442/As0n/hello.c:9:1: error: stray '\233' in program
/249/5442/As0n/hello.c:10:1: error: expected ';' before 'return'
return 0;
^
/249/5442/As0n/hello.c: In function 'b':
/249/5442/As0n/hello.c:15:5: error: stray '\357' in program
printf("小明在慕课网上学了%d门课程",n);
^
/249/5442/As0n/hello.c:15:5: error: stray '\274' in program
/249/5442/As0n/hello.c:15:5: error: stray '\214' in program
/249/5442/As0n/hello.c:15:55: error: expected ')' before 'n'
printf("小明在慕课网上学了%d门课程",n);
举报