home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH17 / F172631.FLD < prev    next >
Encoding:
Text File  |  1993-09-17  |  2.0 KB  |  1 lines

  1. ╦void Process╦() {                         ╘// Part 1                                            int done╦ = 0╦;                                                                              char response ╦= 'q'╦;                                                                       long numeric ╦= 0╦;                                                                          String32 string╦;                                                                               do {                                                                                                  cout ╦<< endl ╦<< endl╦;                                                                  cout ╦<< " P(u)sh Int        P(U)SH String" ╦<< endl╦;                                    cout ╦<< " P(o)p Int         P(O)P String" ╦<< endl╦;                                     cout ╦<< " P(r)int Int stack P(R)INT String stack" ╦<< endl;                               cout ╦<< "                  (Q)uit" ╦<< endl╦;                                            cout ╦<< endl ╦<< endl╦;                                                                  cin ╦>> response╦;                                                                           switch (response╦) {                                                                               case 'U'╦:                                                                                        cout ╦<< "Enter a valid string: "╦;  cin ╦>> string.string╦;                           stringStack.Push╦( string╦);  break;                                                       case 'u'╦:                                                                                        cout ╦<< "Enter an integer: "╦;  cin ╦>> numeric╦;                                     intStack.Push╦( numeric╦);  break;