自定义函数
#include <stdio.h>
int sayLove()
{
printf("%s\n","小明在慕课网上学习");
return 0;
}
int Love(int n)
{
printf("小明在慕课网上已经参与学习了%d门课程",n);
return 0;
}
int main()
{
sayLove();
Love(5);
return 0;
}
为什么运行是这样的
/249/5442/CSM6/hello.c: In function 'Love':
/249/5442/CSM6/hello.c:10:5: error: stray '\357' in program
printf("小明在慕课网上已经参与学习了%d门课程",n);
^
/249/5442/CSM6/hello.c:10:5: error: stray '\274' in program
/249/5442/CSM6/hello.c:10:5: error: stray '\214' in program
/249/5442/CSM6/hello.c:10:70: error: expected ')' before 'n'
printf("小明在慕课网上已经参与学习了%d门课程",n);