请问在性别那一行为什么编译的时候出错了啊
for(int i=0;i<ads->size;i++){ cout<<"性别:" <<(ads->personArray[i].sex ==1 ? "男" : "女" )<<endl; }
收起
sex是什麽类型啊?
报告相同问题?