Facebook
From McHalt, 9 Years ago, written in C++.
This paste is a reply to Semik :v from McHalt - go back
Embed
Viewing differences between Semik :v and Semik :v
#include 
#include 
#include 
#include 
using namespace std;
void zyczenia(){
        system("cls");
        cout << "Pawel, najlepszego chlopie! :D \n99 lat :D \nTomek - 100 lat jest przereklamowane :3 " << endl;
        system("pause");
}
void menu(){
        int wybor;
        do{
                system("cls");
                cout << "Menu\n[1] Zyczenia\n[0] Wyjscie" << endl;
                wybor=getch();
                switch( wybor ){
                case 49:
                        zyczenia();
                        break;
                case 48:
                        system("cls");
                        cout << "Do zobaczenia \n\n";
                        system("pause");
                        break;
                default:
                        cout << "Mozesz wpisywac tylko cyfry 0-1";
                        Sleep(1500);
                }
        }while( wybor != 48 );
}
int main(){
        menu();
}