看看这个程序有何错误谢谢
#include<iostream.h>struct student{
char name[10];
int age;
long id;
char address[50];};
void input(student stu)
{
cout<<"input name age num and adress:\n";
cin>>stu.name>>stu.age>>stu.id>>stu.address;
return(stu);
}
void output(student stu)
{
cout<<"name="<<stu.name<<"\tage="<<stu.age<<"\tnum="<<stu.id<<"\taddress="<<stu.address<<'\n';
}
void main()
{
student stu;
input(stu);
output(stu);
}