error C2109: subscript requires array or pointer type
error C2109: subscript requires array or pointer type
程序完全不对
你有一个
char yhxx;
随即你又
struct yhxx
{
char id[18];//身份证号
char name[10];//姓名
char sex;//性别
int roomquant;//房间数目
char roomtype;//房间类型
int stayday;//住宿时间
int hao;//订单号
};
还写在main函数里面
然后
strcpy(yhxx[j].ID,yhxx[i].ID);
这里又把它当作字符串
你在搞什么。整个什么也不懂?