Void meum_add ()???//promotion menu
{
? CLS.
? int n;
? Cout<& lt;" 1. Add "& lt;
? Cin> n;
? If (n==1) insert ();
? Else if (n==2) liulan ();
? Else if (n==3) find_name ();
? Else if (n==4) find_merchants ();
? The else return;
} void remind ()?//to remind function
{
? CLS.
? SYSTEMTIME sys. ??//call the windowsAPI get??????????????????????????? Time
? GetLocalTime (& amp; Sys);
? Int times=sys. WDay; ????//get the date
? Cout<& lt;" Promotion of the day: "& lt;
?? If (p [I] day_old & lt;=times& & P [I] day_new & gt;=times)
?? {
????? Cout<& lt;" Label: "& lt; ????? Find (I);
?? }
? }
? Pause;
} void shopping ()???//shopping cart function
{
? CLS.
? for(int i=0; i
?? Cout<& lt;" Label: "& lt;
? }
? int n;
? Cout<& lt;" Please enter a label to add to cart (type 1 back) : ";
? Cin> n;
? If (n==1) return;
? If (n<1 & amp; & n> Number)??????//label error
? {
?? Cout<& lt;" Input error!"
? The else {
?? Bool flag=false;
?? for(int i=0; i
????? If (n==pend [I])
????? {
???? Cout<& lt;" In the shopping cart oh ~ "& lt;
???? break;
????? }
?? }
?? If (flag) return;
?? Pend [numkey]=n;
?? Ofstream BC (" pending. TXT ", the ios: : app); ?//in the file
?? Bc
?? Cout<& lt;" Join the success! We will remind you at 30 minutes before the promotion oh ~ "& lt;
? }
? Pause;
}
Void meum_shopping ()?? {//shopping menu
? CLS.
? int n;
? Cout<& lt;" 1. Browse "& lt;
? Cout<& lt;" Please enter the label (other return at the next higher level) : ";
? If (n==1) liulan ();
? Else if (n==2) find_name ();
? Else if (n==3) find_merchants ();
? Else if (n==4) shopping ();
? Else if (n==5) remind ();
? The else return;
}
CodePudding user response:
In order to do this a mere fifty points?CodePudding user response: