请大家帮忙看下c语言中这个程序有什么错误
来源:百度知道 编辑:UC知道 时间:2024/09/28 15:01:28
这个程序哪里错了,为什么我在vc中,编写完后,他提示有错误那?
#include <stdio.h>
main()
{
printf("hello,我要学习。 \n");
}
#include <stdio.h>
main()
{
printf("hello,我要学习。 \n");
}
main没有返回值
int main()
{
printf("hello,我要学习。 \n");
return 0;
}
或者
#include <stdio.h>
void main()
{
printf("hello,我要学习。 \n");
}
提示什么错误?要学会看懂提示的错误啊
main没有返回值
int main()
{
printf("hello,我要学习。 \n");
return 0;
}
或者
#include <stdio.h>
void main()
{
printf("hello,我要学习。 \n");
}
正解!
#include <stdio.h>
void main()
{
printf("hello,我要学习。 \n");
}
haihai