你试试这个:
#include
void myfun()
{
printf("hello, world\n");
}
int main()
{
myfun();
return 0;
}
或者:
#include
int main()
{
void myfun();//////////////////////////声明
myfun();
return 0;
}
void myfun()
{
printf("hello, world\n");
}