The following picture is the compiler times wrong, bosses, help to solve the and my source program under the attached:
# include "System. H
"# include "iostream"
# define BUFSIZE 40
using namespace std;
Void ModifytheGuestroom (tList
{
Char id [BUFSIZE];
Cout<& lt;" \ n please input you want to find the room number: ";
Cin> id;
Bool flag=false;
CNode
P=tListMedic - & gt; The head - & gt; next;
While (p)
{
If (STRCMP (p - & gt; Data. ID, ID)==0 & amp; & P - & gt; Data. The flag)
{
Flag=true;
break;
}
D5rr
P=p - & gt; next;
}
If (flag=true)
{
Cout<& lt;" Found that the room of the original information is: \ n ";
Cout<& lt;" \ n \ n the room number: "& lt; <(p - & gt; The data). ID<& lt;" \ t room type: "& lt; <(p - & gt; The data). Type<& lt;" \ t \ n \ t booking date: "& lt; <(p - & gt; The data). Book<& lt;" \ t \ n \ n prices: "& lt; <(p - & gt; The data). The Price;
Cout<& lt;" \ t \ n \ t the main content of the guest room: "& lt; <(p - & gt; The data). Function<& lt;" \ t \ n \ t stay in the period of validity: "& lt; <(p - & gt; The data). Staytime;
Cout<& lt;" \ n start modifying room below information; \n";
CGuestroom tempGuestroom;
Cout<& lt;" Please enter the room the room number: ";
Cin> TempGuestroom. ID;
Cout<& lt;" Please enter the room the room type: ";
Cin> TempGuestroom. Type;
Cout<& lt;" Please enter the date of guest room guest room: ";
Cin> TempGuestroom. Book;
Cout<& lt;" Please enter the room, room price: ";
Cin> TempGuestroom. Price;
Cout<& lt;" Please enter the room the room main content: ";
Cin> TempGuestroom. Function;
Cout<& lt;" Please input the guest rooms validity: ";
Cin> TempGuestroom. Staytime;
TempGuestroom. Flag=true;
P - & gt; data=https://bbs.csdn.net/topics/tempGuestroom;
Cout<& lt;" Modify success!" ;
}
Cout
System (" CLS ");
return;
}