——我不信命,我信爱情是没有理由悲欢的注定。
好啦,解决了
void People::Show(){
int i;
cout <cout< //cout< }
void People::Input(){
int i,m;
cout<<"Please Input the Number:"<cin>>num;
cout<<"Please Input the Name:(4)"<
cin>>name;
cout<<"Please Input the Sex:(m or f)"<cin>>sex;
cout<<"Please Input the Id:(10)"<for(m=0;m<10;m++){
cin>>ID[m];
}
}
你只改这两个函数就可以了。错误的输出未知位置的信息。
结果如下: