下面圖片是編譯程式時報的錯,求大佬幫忙解決下,還有我的源程式附下:
#include"System.h"
#include"iostream"
#define BUFSIZE 40
using namespace std;
void ModifytheGuestroom(tList<cGuestroom>*tListMedic)
{
char id[BUFSIZE];
cout<<"\n請輸入你要查找的客房編號:";
cin>>id;
bool flag=false;
cNode<cGuestroom>*p;
p=tListMedic->head->next;
while(p)
{
if(strcmp(p->data.ID,id)==0&&p->data.flag)
{
flag=true;
break;
}
d5rr
p=p->next;
}
if(flag=true)
{
cout<<"找到了,該客房的原始資訊是:\n";
cout<<"\n\n客房編號:"<<(p->data).ID<<"\t客房型別:"<<(p->data).Type<<"\n\t\t訂房日期:"<<(p->data).Book<<"\t\n\n價格:"<<(p->data).Price;
cout<<"\n\t\t客房的主要內容:"<<(p->data).Function<<"\n\t\t入住有效期:"<<(p->data).Staytime;
cout<<"\n下面開始修改客房資訊;\n";
cGuestroom tempGuestroom;
cout<<"請輸入客房的客房編號:";
cin>>tempGuestroom.ID;
cout<<"請輸入客房的客房型別:";
cin>>tempGuestroom.Type;
cout<<"請輸入客房的客房日期:";
cin>>tempGuestroom.Book;
cout<<"請輸入客房的客房價格:";
cin>>tempGuestroom.Price;
cout<<"請輸入客房的客房主要內容:";
cin>>tempGuestroom.Function;
cout<<"請輸入客人入住客房有效期:";
cin>>tempGuestroom.Staytime;
tempGuestroom.flag=true;
p->data=https://bbs.csdn.net/topics/tempGuestroom;
cout<<"修改成功!";
}
cout<<endl;
system("pause");
system("cls");
return;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/173061.html
標籤:基礎類
上一篇:我的C++ builder 10.4 update 1成員提示怎么出不來了?
下一篇:鏈表(模板)類
