Home > Back-end >  Add the following c plus into the c language program
Add the following c plus into the c language program

Time:06-06


Void meum_add ()???//promotion menu
{
? CLS.
? int n;
? Cout<& lt;" 1. Add "& lt; ? Cout<& lt;" 2. Browse "& lt; ? Cout<& lt;" 3. Press the name lookup "& lt; ? Cout<& lt;" 4. According to the store the query "& lt; ? Cout<& lt;" Please enter the label (other return at the next higher level) : ";
? 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; ? for(int i=0; i? {
?? 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; ?? Find (pend [I] 1);
? }
? 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; ???? flag=true;
???? break;
????? }
?? }
?? If (flag) return;
?? Pend [numkey]=n;
?? Ofstream BC (" pending. TXT ", the ios: : app); ?//in the file
?? Bc?? BC. The close ();
?? Cout<& lt;" Join the success! We will remind you at 30 minutes before the promotion oh ~ "& lt; ?? Numkey++;
? }
? Pause;
}
Void meum_shopping ()?? {//shopping menu
? CLS.
? int n;
? Cout<& lt;" 1. Browse "& lt; ? Cout<& lt;" 2. The name search "& lt; ? Cout<& lt;" 3. Business search "& lt; ? Cout<& lt;" 4. The shopping cart "& lt; ? Cout<& lt;" 5. Today, promotion of "& lt; ? Cin> n;
? 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:

reference 1st floor SuperDay response:
in order to do this a mere fifty?
how many points that you want

CodePudding user response:

How many points do not, it is of little use again

CodePudding user response:

Have problems to ask questions, just in order to copy the answer to a job, is not interested to help us

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related