刚碰c++遇到有关问题了
刚碰c++遇到问题了
请各位前辈指导
#include<iostream.h>
void hello(char *s)
{
cout<<endl<<s<<",你们好!";
}
void main()
{
hello("同学们");
hello("朋友们");
}
如何点执行就报警了
hello.exe - 1 error(s), 0 warning(s)
什么问题啊?
------解决方案--------------------
请各位前辈指导
#include<iostream.h>
void hello(char *s)
{
cout<<endl<<s<<",你们好!";
}
void main()
{
hello("同学们");
hello("朋友们");
}
如何点执行就报警了
hello.exe - 1 error(s), 0 warning(s)
什么问题啊?
------解决方案--------------------