Results 1 to 4 of 4

Thread: ++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Dec:2013
    Location: Pernik
    Posts: 4

    ++

    !
    , . , , , (10:00-11:00: ).
    , , . 3 . , .
    !

    Code:
    #include <iostream>
    using namespace std;
    enum BOOL { FALSE, TRUE };
    typedef unsigned short int USHORT;
    USHORT menu();
    USHORT menu1();
    USHORT menu2();
    USHORT menu3();
    USHORT menu4();
    USHORT menu5();
    string Ime1,Ime2,Ime3;
    string I4,I5,I6;
    string i7,i8,i9;
    string Im10,Im11,Im12;
    string im13,im14,im15;
    string ime16,ime17,ime18,imE19,imE20,imE21,iMe22,iMe23,iMe24,IME25,IME26,IME27,IMe28,IMe29,IMe30;
    void Chas1(),Chas2(),Chas3(),Chas4(),Chas5(),Chas6(),Chas7(),Chas8(),Chas9(),Chas10();
    void Ch1(),Ch2(),Ch3(),Ch4(),Ch5(),Ch6(),Ch7(),Ch8(),Ch9(),Ch10();
    void H1(),H2(),H3(),H4(),H5(),H6(),H7(),H8(),H9(),H10();
    void Ponedelnik();
    void Vtornik();
    void Srqda();
    void Chetvurtuk();
    void Petuk();
       int main()
       {
              BOOL exit = FALSE;
    for (;;)
    {
                USHORT choice = menu();
                switch(choice)
                 {
                   case (1):
                        Ponedelnik();
                        break;
                    case (2):
                       Vtornik();
                         break;
                   case (3):
                       Srqda();
                       break;
                    default:
                        cout << "''Poglednete menuto pak!''\n\n\n";
                         continue;
                }          // end switch
    
                 if (exit)
                            break;
                }
     return 0;
       }
    
    USHORT menu()
       {
            USHORT choice;
    
            cout << " *** Den ot sedmicata ***\n\n";
            cout << "(1) Ponedelnik\n";
            cout << "(2) Vtornik\n";
            cout << "(3) Srqda\n";
            cout << "(4) Chetvurtuk\n";
            cout << "(5) Petuk\n";
            cout << "Molq izberete den ot sedmicata: ";
            cin >> choice;
            return choice;
       }
    
    
    USHORT menu1()
       {
            USHORT choice;
            cout << "\n *** Chas ***\n\n";
            cout << "(1) 10:00-11:00"<<": "<<Ime1<<" "<<Ime2<<" "<<Ime3<<" ";
            cout << "(2) 11:00-12:00"<<": "<<I4<<" "<<I5<<" "<<I6<<" ";
            cout << "\n(3) 12:00-13:00"<<": "<<i7<<" "<<i8<<" "<<i9<<" ";
            cout << "(4) 13:00-14:00"<<": "<<Im10<<" "<<Im11<<" "<<Im12<<" ";
            cout << "\n(5) 14:00-15:00"<<": "<<im13<<" "<<im14<<" "<<im15<<" ";
            cout << "(6) 15:00-16:00"<<": "<<ime16<<" "<<ime17<<" "<<ime18<<" ";
            cout << "\n(7) 16:00-17:00"<<": "<<imE19<<" "<<imE20<<" "<<imE21<<" ";
            cout << "(8) 17:00-18:00"<<": "<<iMe22<<" "<<iMe23<<" "<<iMe24<<" ";
            cout << "\n(9) 18:00-19:00"<<": "<<IME25<<" "<<IME26<<" "<<IME27<<" ";
            cout << "(10) 19:00-20:00"<<": "<<IMe28<<" "<<IMe29<<" "<<IMe30<<" ";
            cout << "\nMolq izberete chas: ";
            cin >> choice;
            return choice;
       }
    
    USHORT menu2()
       {
            USHORT choice;
    
              cout << "\n *** Izberete chas ***\n\n";
             cout << "(1) 10:00-11:00\n";
            cout << "(2) 11:00-12:00\n";
            cout << "(3) 12:00-13:00\n";
            cout << "(4) 13:00-14:00\n";
            cout << "(5) 14:00-15:00\n";
            cout << "(6) 15:00-16:00\n";
            cout << "(7) 16:00-17:00\n";
            cout << "(8) 17:00-18:00\n";
            cout << "(9) 18:00-19:00\n";
            cout << "(10) 19:00-20:00\n";
            cout << ": ";
            cin >> choice;
            return choice;
       }
    
    USHORT menu3()
       {
            USHORT choice;
    
              cout << "\n *** Izberete chas ***\n\n";
             cout << "(1) 10:00-11:00\n";
            cout << "(2) 11:00-12:00\n";
            cout << "(3) 12:00-13:00\n";
            cout << "(4) 13:00-14:00\n";
            cout << "(5) 14:00-15:00\n";
            cout << "(6) 15:00-16:00\n";
            cout << "(7) 16:00-17:00\n";
            cout << "(8) 17:00-18:00\n";
            cout << "(9) 18:00-19:00\n";
            cout << "(10) 19:00-20:00\n";
            cout << ": ";
            cin >> choice;
            return choice;
       }
    
    void Ponedelnik()
    {
              BOOL exit = FALSE;
    for (;;)
    {
                USHORT choice = menu1();
                switch(choice)
                 {
                         case (1):
                        Chas1();
                         break ;
                         case (2):
                        Chas2();
                         break ;
                         case (3):
                        Chas3();
                         break ;
                         case (4):
                        Chas4();
                         break ;
                         case (5):
                        Chas5();
                         break ;
                         case (6):
                        Chas6();
                         break ;
                         case (7):
                        Chas7();
                         break ;
                         case (8):
                        Chas8();
                         break ;
                         case (9):
                        Chas9();
                         break ;
                         case (10):
                        Chas10();
                         break ;
                         
    
                }          
    
                 if (exit)
                            break;
    }
    }
    void Vtornik()
    {
              BOOL exit = FALSE;
    for (;;)
    {
                USHORT choice = menu2();
                switch(choice)
                 {
                   case (1):
                        Chas1();
                        break;
                    case (2):
                        Chas2();
                         break;
    
                    default:
                        cout << "Poglednete menuto pak!\n\n";
                         continue;
                }         
    
                 if (exit)
                            break;
    }
    }
    void Srqda()
    {
              BOOL exit = FALSE;
    for (;;)
    {
                USHORT choice = menu3();
                switch(choice)
                 {
                   case (1):
                        Ch1();
                        break;
                    case (2):
                        Ch2();
                         break;
    
                    default:
                        cout << "Poglednete menuto pak!\n\n";
                         continue;
                }       
    
                 if (exit)
                            break;
    }
    }
    
    void Chas1()
           {
                cout << "\nMolq vuvedete ime: ";
        cin>>Ime1;
        cout<<menu1 ();
       cout << "\nMolq vuvedete ime: ";
       cin>>Ime2;
       cout<< menu1 ();
       cout << "\nMolq vuvedete ime: ";
        cin>>Ime3;
        cout<< menu1();
    }
    void Chas2()
           {
               cout << "\nMolq vuvedete ime: ";
                 cin>>I4;
        cout<< menu1();
       cout << "\nMolq vuvedete ime: ";
       cin>>I5;
       cout<< menu1();
       cout << "\nMolq vuvedete ime: ";
        cin>>I6;
        cout<< menu1();
           }
           void Chas3()
           {
                cout << "\nMolq vuvedete ime: ";
                  cin>>i7;
        cout<< menu1();
       cout << "\nMolq vuvedete ime: ";
       cin>>i8;
       cout<< menu1();
       cout << "\nMolq vuvedete ime: ";
        cin>>i9;
        cout<< menu1();
           }
    void Chas4()
           {
                cout << "\nMolq vuvedete ime: ";
                cin>>Im10;
        cout<< menu1();
       cout << "\nMolq vuvedete ime: ";
       cin>>Im11;
       cout<< menu1();
       cout << "\nMolq vuvedete ime: ";
        cin>>Im12;
        cout<< menu1();
           }
    void Chas5()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Chas6()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Chas7()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Chas8()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Chas9()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Chas10()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    
    void Ch1()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    
    void Ch2()
           {
               cout << "\nMolq vuvedete ime: ";
           }
    void Ch3()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch4()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch5()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch6()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch7()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch8()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch9()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void Ch10()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H1()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    
    void H2()
           {
               cout << "\nMolq vuvedete ime: ";
           }
    void H3()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H4()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H5()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H6()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H7()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H8()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H9()
           {
                cout << "\nMolq vuvedete ime: ";
           }
    void H10()
           {
                cout << "\nMolq vuvedete ime: ";
           }

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    ? 30 Ime, string...
    , , - .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Registered User axi's Avatar
    Join Date: Aug:2013
    Location: Sofia
    Posts: 3,638
    - , . 50 40 , copy/paste. , 2 3 ...
    , ( ) .

  4. #4
    Registered User
    Join Date: Dec:2013
    Location: Pernik
    Posts: 4
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |