Advertisement
Guest User

Untitled

a guest
May 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 21.03 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. #include <time.h>
  4. #include <stdlib.h>
  5. #include <conio.h>
  6.  
  7. using namespace std;
  8.  
  9. int akcentoczy();
  10. int wstepakcentoczy();
  11. string tab[169] = {
  12.     "Odkad","zobaczylem","Ciebie",
  13.     "Nie","moge","jesc,","nie","moge","spac",
  14.     "Jak","do","tego","doszlo,","nie","wiem",
  15.     "Milosc","o","sobie","dala","znac", // 0 - 19
  16.      
  17.     "Co","poradzic","moge","na","to",
  18.     "Ze","milosc","przyszla","wlasnie","dzis",
  19.     "Ze","w","sercu","mym","jest","lato",
  20.     "A","w","moich","myslach","jestes","Ty", //20 - 41
  21.      
  22.     "Przez","te","oczy,","te","oczy","zielone","oszalalem",
  23.     "Gwiazdy","chyba","Twym","oczom","oddaly","caly","blask",
  24.     "A","ja","serce","milosci","spragnione","Ci","oddalem",
  25.     "Tak","zakochac,","zakochac","sie","mozna","tylko","raz", //42-69
  26.     " ", //70
  27.     "W","mych","ramionach","Cie","ukryje",
  28.     "U","stop","Ci","zloze","caly","swiat",
  29.     "Serce","me","dla","ciebie","bije",
  30.     "I","czeka","na","Twoj","maly","znak",
  31.     "Jeden","usmiech","Twoj","wystarczy",
  32.     "I","moje","serce","powie","rytm",
  33.     "O","Twa","milosc","bede","walczyl",
  34.     "O","milosc","walczyc","to","nie","wstyd", //71 - 112
  35.      
  36.     "Przez","te","oczy,","te","oczy","zielone","oszalalem",
  37.     "Gwiazdy","chyba","Twym","oczom","oddaly","caly","blask",
  38.     "A","ja","serce","milosci","spragnione","Ci","oddalem",
  39.     "Tak","zakochac,","zakochac","sie","mozna","tylko","raz" //113 - 140
  40.  
  41.     "Przez","te","oczy,","te","oczy","zielone","oszalalem",
  42.     "Gwiazdy","chyba","Twym","oczom","oddaly","caly","blask",
  43.     "A","ja","serce","milosci","spragnione","Ci","oddalem",
  44.     "Tak","zakochac,","zakochac","sie","mozna","tylko","raz", //141 - 168
  45.     " ", // 169
  46. };
  47.  
  48. int main() {
  49.    
  50.     int wybor;
  51.     HANDLE kolor;
  52.     kolor = GetStdHandle( STD_OUTPUT_HANDLE );
  53.     SetConsoleTextAttribute( kolor, 8 );
  54.    
  55.         while((wybor!=1) && (wybor!=2)){                    //Menu glowne
  56.             cout << "Witaj w karaoke !" << endl;
  57.             cout << endl;
  58.             cout << "Wybierz utwor: " << endl;
  59.             SetConsoleTextAttribute( kolor, 10 );
  60.             cout << "1. Akcent - Przez twe oczy zielone" << endl;
  61.             SetConsoleTextAttribute( kolor, 8 );
  62.             cout << "Wybieram: ";
  63.             SetConsoleTextAttribute( kolor, 10 );  
  64.             cin>>wybor;
  65.             SetConsoleTextAttribute( kolor, 8 );
  66.            
  67.                 if(wybor==1) {
  68. //                  wstepakcentoczy();
  69.                     akcentoczy();      
  70.                 } else if(wybor==2) {
  71.                                                 //Tu cos kiedys bedzie :P
  72.                 } else if(wybor==45) {          //Dla programistow
  73.                     system ( "cls" );
  74.                 } else {
  75.                     system ( "cls" );
  76.                     cin.clear();
  77.                     cin.sync();
  78.                 }
  79.            
  80.             Sleep(1000);                                    //Menu koncowe
  81.             cout << "Czy chcesz zakonczyc gre ?" << endl;
  82.             SetConsoleTextAttribute( kolor, 10 );  
  83.             cout << "1. Tak" << endl;
  84.             cout << "2. Nie" << endl;
  85.             SetConsoleTextAttribute( kolor, 8 );
  86.             cout << "Wybieram: ";
  87.             SetConsoleTextAttribute( kolor, 10 );  
  88.             cin >> wybor;
  89.             SetConsoleTextAttribute( kolor, 8 );
  90.            
  91.             if(wybor==1) {
  92.             return 0;
  93.             } else if(wybor==2) {
  94.                 wybor = 0;
  95.                 system ( "cls" );
  96.             } else {
  97.                 system ( "cls" );
  98.                 cin.clear();
  99.                 cin.sync();    
  100.             }
  101.         }
  102.        
  103.     cin.get();
  104.     cin.get();
  105.     return 0;  
  106. }
  107.  
  108. int akcentoczy(){
  109.    
  110.     HANDLE kolor;
  111.     kolor = GetStdHandle( STD_OUTPUT_HANDLE );
  112.     SetConsoleTextAttribute( kolor, 3 );
  113.    
  114.     int x=0;
  115.     system ( "cls" );
  116.     Sleep(1000);
  117.     while(x <=169) {
  118.    
  119.     if(x < 3) {                                          //* 1 linijka
  120.         for(int i = 0; i <= 2; i++) {
  121.        
  122.             if(x == i ) {
  123.                 SetConsoleTextAttribute( kolor, 10 );  
  124.                 cout  << tab[i] << " ";
  125.                 SetConsoleTextAttribute( kolor, 8 );
  126.             }
  127.             if(x != i) {
  128.                 cout << tab[i] << " ";
  129.             }
  130.         }
  131.     } else if(x >= 3 && x <= 8 ) {                          //* 2 linijka
  132.         for(int i = 3; i <= 8; i++) {
  133.        
  134.             if(x == i ) {
  135.                 SetConsoleTextAttribute( kolor, 10 );  
  136.                 cout  << tab[i] << " ";
  137.                 SetConsoleTextAttribute( kolor, 8 );  
  138.             }
  139.             if(x != i) {
  140.                 cout << tab[i] << " ";
  141.             }
  142.         }
  143.     } else if(x >= 9 && x <= 14 ) {                         //* 3 linijka
  144.         for(int i = 9; i <= 14; i++) {
  145.        
  146.             if(x == i ) {
  147.                 SetConsoleTextAttribute( kolor, 10 );  
  148.                 cout  << tab[i] << " ";
  149.                 SetConsoleTextAttribute( kolor, 8 );  
  150.             }
  151.             if(x != i) {
  152.                 cout << tab[i] << " ";
  153.             }
  154.         }
  155.     } else if(x >= 15 && x <= 19 ) {                        //* 4 linijka
  156.         for(int i = 15; i <= 19; i++) {
  157.        
  158.             if(x == i ) {
  159.                 SetConsoleTextAttribute( kolor, 10 );  
  160.                 cout  << tab[i] << " ";
  161.                 SetConsoleTextAttribute( kolor, 8 );  
  162.             }
  163.             if(x != i) {
  164.                 cout << tab[i] << " ";
  165.             }
  166.         }
  167.     } else if(x >= 20 && x <= 24 ) {                        //* 5 linijka
  168.         for(int i = 20; i <= 24; i++) {
  169.        
  170.             if(x == i ) {
  171.                 SetConsoleTextAttribute( kolor, 10 );  
  172.                 cout  << tab[i] << " ";
  173.                 SetConsoleTextAttribute( kolor, 8 );  
  174.             }
  175.             if(x != i) {
  176.                 cout << tab[i] << " ";
  177.             }
  178.         }
  179.     } else if(x >= 25 && x <= 29 ) {                        //* 6 linijka
  180.         for(int i = 25; i <= 29; i++) {
  181.        
  182.             if(x == i ) {
  183.                 SetConsoleTextAttribute( kolor, 10 );  
  184.                 cout  << tab[i] << " ";
  185.                 SetConsoleTextAttribute( kolor, 8 );  
  186.             }
  187.             if(x != i) {
  188.                 cout << tab[i] << " ";
  189.             }
  190.         }
  191.     } else if(x >= 30 && x <= 35 ) {                        //* 7 linijka
  192.         for(int i = 30; i <= 35; i++) {
  193.        
  194.             if(x == i ) {
  195.                 SetConsoleTextAttribute( kolor, 10 );  
  196.                 cout  << tab[i] << " ";
  197.                 SetConsoleTextAttribute( kolor, 8 );  
  198.             }
  199.             if(x != i) {
  200.                 cout << tab[i] << " ";
  201.             }
  202.         }
  203.     } else if(x >= 36 && x <= 41 ) {                        //* 8 linijka
  204.         for(int i = 36; i <= 41; i++) {
  205.        
  206.             if(x == i ) {
  207.                 SetConsoleTextAttribute( kolor, 10 );  
  208.                 cout  << tab[i] << " ";
  209.                 SetConsoleTextAttribute( kolor, 8 );  
  210.             }
  211.             if(x != i) {
  212.                 cout << tab[i] << " ";
  213.             }
  214.         }
  215.     } else if(x >= 42 && x <= 48 ) {                        //* 9 linijka
  216.         for(int i = 42; i <= 48; i++) {
  217.        
  218.             if(x == i ) {
  219.                 SetConsoleTextAttribute( kolor, 10 );  
  220.                 cout  << tab[i] << " ";
  221.                 SetConsoleTextAttribute( kolor, 8 );  
  222.             }
  223.             if(x != i) {
  224.                 cout << tab[i] << " ";
  225.             }
  226.         }
  227.     } else if(x >= 49 && x <= 55 ) {                        //* 10 linijka
  228.         for(int i = 49; i <= 55; i++) {
  229.        
  230.             if(x == i ) {
  231.                 SetConsoleTextAttribute( kolor, 10 );  
  232.                 cout  << tab[i] << " ";
  233.                 SetConsoleTextAttribute( kolor, 8 );  
  234.             }
  235.             if(x != i) {
  236.                 cout << tab[i] << " ";
  237.             }
  238.         }
  239.     } else if(x >= 56 && x <= 62 ) {                        //* 11 linijka
  240.         for(int i = 56; i <= 62; i++) {
  241.        
  242.             if(x == i ) {
  243.                 SetConsoleTextAttribute( kolor, 10 );  
  244.                 cout  << tab[i] << " ";
  245.                 SetConsoleTextAttribute( kolor, 8 );  
  246.             }
  247.             if(x != i) {
  248.                 cout << tab[i] << " ";
  249.             }
  250.         }
  251.     } else if(x >= 63 && x <= 69 ) {                        //* 12 linijka
  252.         for(int i = 63; i <= 69; i++) {
  253.        
  254.             if(x == i ) {
  255.                 SetConsoleTextAttribute( kolor, 10 );  
  256.                 cout  << tab[i] << " ";
  257.                 SetConsoleTextAttribute( kolor, 8 );  
  258.             }
  259.             if(x != i) {
  260.                 cout << tab[i] << " ";
  261.             }
  262.         }
  263.     } else if(x >= 71 && x <= 75 ) {                        //* 13 linijka
  264.         for(int i = 71; i <= 75; i++) {
  265.        
  266.             if(x == i ) {
  267.                 SetConsoleTextAttribute( kolor, 10 );  
  268.                 cout  << tab[i] << " ";
  269.                 SetConsoleTextAttribute( kolor, 8 );  
  270.             }
  271.             if(x != i) {
  272.                 cout << tab[i] << " ";
  273.             }
  274.         }
  275.     } else if(x >= 76 && x <= 81 ) {                        //* 14 linijka
  276.         for(int i = 76; i <= 81; i++) {
  277.        
  278.             if(x == i ) {
  279.                 SetConsoleTextAttribute( kolor, 10 );  
  280.                 cout  << tab[i] << " ";
  281.                 SetConsoleTextAttribute( kolor, 8 );  
  282.             }
  283.             if(x != i) {
  284.                 cout << tab[i] << " ";
  285.             }
  286.         }
  287.     } else if(x >= 82 && x <= 86 ) {                        //* 15 linijka
  288.         for(int i = 82; i <= 86; i++) {
  289.        
  290.             if(x == i ) {
  291.                 SetConsoleTextAttribute( kolor, 10 );  
  292.                 cout  << tab[i] << " ";
  293.                 SetConsoleTextAttribute( kolor, 8 );  
  294.             }
  295.             if(x != i) {
  296.                 cout << tab[i] << " ";
  297.             }
  298.         }
  299.     } else if(x >= 87 && x <= 92 ) {                        //* 16 linijka
  300.         for(int i = 87; i <= 92; i++) {
  301.        
  302.             if(x == i ) {
  303.                 SetConsoleTextAttribute( kolor, 10 );  
  304.                 cout  << tab[i] << " ";
  305.                 SetConsoleTextAttribute( kolor, 8 );  
  306.             }
  307.             if(x != i) {
  308.                 cout << tab[i] << " ";
  309.             }
  310.         }
  311.     } else if(x >= 93 && x <= 96 ) {                        //* 17 linijka
  312.         for(int i = 93; i <= 96; i++) {
  313.        
  314.             if(x == i ) {
  315.                 SetConsoleTextAttribute( kolor, 10 );  
  316.                 cout  << tab[i] << " ";
  317.                 SetConsoleTextAttribute( kolor, 8 );  
  318.             }
  319.             if(x != i) {
  320.                 cout << tab[i] << " ";
  321.             }
  322.         }
  323.     } else if(x >= 97 && x <= 101 ) {                       //* 18 linijka
  324.         for(int i = 97; i <= 101; i++) {
  325.        
  326.             if(x == i ) {
  327.                 SetConsoleTextAttribute( kolor, 10 );  
  328.                 cout  << tab[i] << " ";
  329.                 SetConsoleTextAttribute( kolor, 8 );  
  330.             }
  331.             if(x != i) {
  332.                 cout << tab[i] << " ";
  333.             }
  334.         }
  335.     } else if(x >= 102 && x <= 106 ) {                      //* 19 linijka
  336.         for(int i = 102; i <= 106; i++) {
  337.        
  338.             if(x == i ) {
  339.                 SetConsoleTextAttribute( kolor, 10 );  
  340.                 cout  << tab[i] << " ";
  341.                 SetConsoleTextAttribute( kolor, 8 );  
  342.             }
  343.             if(x != i) {
  344.                 cout << tab[i] << " ";
  345.             }
  346.         }
  347.     } else if(x >= 107 && x <= 112 ) {                      //* 20 linijka
  348.         for(int i = 107; i <= 112; i++) {
  349.        
  350.             if(x == i ) {
  351.                 SetConsoleTextAttribute( kolor, 10 );  
  352.                 cout  << tab[i] << " ";
  353.                 SetConsoleTextAttribute( kolor, 8 );  
  354.             }
  355.             if(x != i) {
  356.                 cout << tab[i] << " ";
  357.             }
  358.         }
  359.     } else if(x >= 113 && x <= 119 ) {                      //* 21 linijka
  360.         for(int i = 113; i <= 119; i++) {
  361.        
  362.             if(x == i ) {
  363.                 SetConsoleTextAttribute( kolor, 10 );  
  364.                 cout  << tab[i] << " ";
  365.                 SetConsoleTextAttribute( kolor, 8 );  
  366.             }
  367.             if(x != i) {
  368.                 cout << tab[i] << " ";
  369.             }
  370.         }
  371.     } else if(x >= 120 && x <= 126 ) {                      //* 22 linijka
  372.         for(int i = 120; i <= 126; i++) {
  373.        
  374.             if(x == i ) {
  375.                 SetConsoleTextAttribute( kolor, 10 );  
  376.                 cout  << tab[i] << " ";
  377.                 SetConsoleTextAttribute( kolor, 8 );  
  378.             }
  379.             if(x != i) {
  380.                 cout << tab[i] << " ";
  381.             }
  382.         }
  383.     } else if(x >= 127 && x <= 133 ) {                      //* 23 linijka
  384.         for(int i = 127; i <= 133; i++) {
  385.        
  386.             if(x == i ) {
  387.                 SetConsoleTextAttribute( kolor, 10 );  
  388.                 cout  << tab[i] << " ";
  389.                 SetConsoleTextAttribute( kolor, 8 );  
  390.             }
  391.             if(x != i) {
  392.                 cout << tab[i] << " ";
  393.             }
  394.         }
  395.     } else if (x >= 134 && x <= 140 ) {                      //* 24 linijka
  396.         for(int i = 134; i <= 140; i++) {
  397.        
  398.             if(x == i ) {
  399.                 SetConsoleTextAttribute( kolor, 10 );  
  400.                 cout  << tab[i] << " ";
  401.                 SetConsoleTextAttribute( kolor, 8 );  
  402.             }
  403.             if(x != i) {
  404.                 cout << tab[i] << " ";
  405.             }
  406.         }
  407.     }
  408.    
  409.   if(x==0) {
  410.             Beep(440, 230);     //Odkąd
  411.             Beep(440,230);
  412.         } else if (x==1) {
  413.             Beep(440, 230);     //Zobaczyłem
  414.             Beep(440,230);
  415.             Beep(698.456, 460);
  416.             Beep(659.255,230);
  417.         } else if (x==2) {
  418.             Beep(466.164, 460); //Ciebie
  419.             Beep(466.164, 1610);
  420.             Beep(0, 230);       //----------
  421.         } else if (x==3) {    
  422.             Beep(523.251, 230); //Nie
  423.         } else if (x==4) {
  424.             Beep(523.251,230);  //Moge
  425.             Beep(523.251, 230);
  426.         } else if (x==5) {
  427.             Beep(783.991,230);  //Jeść
  428.         } else if (x==6) {
  429.             Beep(659.255,230);  //Nie
  430.         } else if (x==7) {
  431.             Beep(587.330,230);  //Moge
  432.             Beep(523.251,230);  
  433.         } else if(x==8) {
  434.             Beep(587.330, 230); //Spac
  435.             Beep(523.251, 690);
  436.             Beep(0, 920);       //----------
  437.         } else if(x==9) {      
  438.             Beep(440, 230);     //Jak
  439.         } else if(x==10) {
  440.             Beep(440, 230);     //Do
  441.         } else if(x==11) {
  442.             Beep(440, 230);     //Tego
  443.             Beep(440, 230);
  444.         } else if(x==12) {
  445.             Beep(698.456, 460); //Doszło
  446.             Beep(659.255,230);
  447.         } else if(x==13) {
  448.             Beep(466.164, 460); //Nie
  449.         } else if(x==14) {
  450.            Beep(466.164, 1610); //Wiem
  451.            Beep(0, 230);        //----------
  452.         } else if(x==15) {      
  453.            Beep(659.255, 230);  //Milosc
  454.            Beep(659.255, 230);          
  455.         } else if(x==16) {
  456.            Beep(659.255, 230);  //O    
  457.         } else if(x==17) {
  458.            Beep(698.456, 230);  //Sobie
  459.            Beep(659.255, 230);            
  460.         } else if(x==18) {
  461.            Beep(587.330, 230);  //Dała
  462.            Beep(554.365, 230);            
  463.         } else if(x==19) {
  464.            Beep(587.330, 460); //Znac
  465.            Beep(0, 1380);                      
  466.         }else if(x==20) {
  467.            Beep(440, 230);      //Co      
  468.         }else if(x==21) {
  469.            Beep(440, 230);      //Poradzic    
  470.            Beep(440, 230);
  471.            Beep(440, 230);
  472.         }else if(x==22) {
  473.            Beep(698.456, 460);  //Moge
  474.            Beep(659.255, 230);    
  475.         }else if(x==23) {
  476.            Beep(466.164, 460);  //Na      
  477.         }else if(x==24) {
  478.            Beep(466.164, 1610); //To              
  479.         }else if(x==25) {
  480.            Beep(0, 230);          //----------
  481.            Beep(523.251, 230);  //Że      
  482.         }else if(x==26) {
  483.            Beep(523.251, 230);  //Milosc  
  484.            Beep(523.251, 230);        
  485.         }else if(x==27) {
  486.            Beep(783.991, 230);  //Przyszla
  487.            Beep(659.255, 230);
  488.         }else if(x==28) {
  489.            Beep(587.330, 230);  //Wlasnie  
  490.            Beep(523.251, 230);        
  491.         }else if(x==29) {
  492.            Beep(587.330, 230);  //Dzis
  493.            Beep(523.251, 690);
  494.            Beep(0, 920);          //----------
  495.         }else if(x==30) {
  496.            Beep(0, 230);          //----------
  497.            Beep(440, 230);      //Ze      
  498.         }else if(x==31) {
  499.            Beep(0, 0);      //W    
  500.         }else if(x==32) {
  501.            Beep(440, 230);      //Sercu
  502.            Beep(440, 230);        
  503.         }else if(x==33) {
  504.            Beep(698.456, 460);  //Mym      
  505.         }else if(x==34) {
  506.            Beep(659.255, 230);  //Jest    
  507.         }else if(x==35) {
  508.            Beep(466.164, 460);  //Lato
  509.            Beep(466.164, 1610);
  510.            Beep(0, 230);          //----------
  511.         }else if(x==36) {
  512.            Beep(659.255, 230);  //A
  513.         }else if(x==37) {
  514.            Beep(0,0);  //W    
  515.         }else if(x==38) {
  516.            Beep(659.255, 230);   //Moich
  517.            Beep(659.255, 230);  
  518.         }else if(x==39) {
  519.            Beep(698.456, 230);  //Myslach
  520.            Beep(659.255, 230);              
  521.         }else if(x==40) {
  522.            Beep(587.330, 230);  //Jestes  
  523.            Beep(554.365, 230);  
  524.         }else if(x==41) {
  525.            Beep(587.330, 460);  //Ty
  526.            Beep(0, 1380);         //----------      
  527.         }else if(x==42) {
  528.            Beep(587.33, 460);   //Przez
  529.         }else if(x==43) {
  530.             Beep(659.255, 460); //twe
  531.         }else if(x==44) {
  532.             Beep(698.456, 230); //Oczy
  533.             Beep(698.456, 230);
  534.         }else if(x==45) {
  535.             Beep(659.255, 230); //Twe      
  536.         }else if(x==46) {
  537.             Beep(698.456, 460); //Oczy
  538.             Beep(698.456, 230);
  539.         }else if(x==47) {
  540.             Beep(659.255, 230); //Zielone
  541.             Beep(698.456, 460);
  542.             Beep(587.330, 460);
  543.             Beep(0, 230);
  544.         }else if(x==48) {
  545.             Beep(698.456, 460); //Oszalałem
  546.             Beep(880, 460);
  547.             Beep(932.328, 690);
  548.             Beep(587.330, 690);
  549.             Beep(0, 460);
  550.         }else if(x==49) {
  551.             Beep(587.330, 460); //Gwiazdy
  552.             Beep(587.330, 460);
  553.         }else if(x==50) {
  554.             Beep(659.255, 230); //Chyba
  555.             Beep(659.255, 230);
  556.         }else if(x==51) {
  557.             Beep(587.330, 230); //Twym
  558.         }else if(x==52) {
  559.             Beep(659.255, 460); //oczyn
  560.             Beep(659.255, 230);
  561.         }else if(x==53) {
  562.             Beep(587.330, 230); //Oddały
  563.             Beep(659.255, 460);
  564.             Beep(523.251, 690);
  565.             Beep(0, 230);
  566.         }else if(x==54) {
  567.             Beep(932.328, 230); //Cały
  568.             Beep(783.991, 460);
  569.         }else if(x==55) {
  570.             Beep(880, 1150);    //Blask
  571.             Beep(783.991, 230);
  572.             Beep(698.456, 230);
  573.             Beep(659.255, 460);
  574.             Beep(0, 230);
  575.         }else if(x==56) {
  576.             Beep(587.330, 460); //A
  577.         }else if(x==57) {
  578.             Beep(659.255, 460); //Me
  579.         }else if(x==58) {
  580.             Beep(698.456, 230); //Serce
  581.             Beep(698.456, 230);
  582.         }else if(x==59) {
  583.             Beep(659.255, 230); //Miłości
  584.             Beep(698.456, 460);
  585.             Beep(698.456, 230);
  586.         }else if(x==60) {
  587.             Beep(659.255, 230); //Spragnione
  588.             Beep(698.456, 460);
  589.             Beep(587.33, 460);
  590.             Beep(0, 230);
  591.         }else if(x==61) {
  592.             Beep(698.456, 460); //Ci
  593.         }else if(x==62) {
  594.             Beep(880, 460);     //Oddałem
  595.             Beep(932.328, 690);
  596.             Beep(587.330, 690);
  597.             Beep(0, 460);
  598.         }else if(x==63) {
  599.             Beep(783.991, 460);
  600.         }else if(x==64) {
  601.             Beep(698.456, 460);
  602.             Beep(659.255, 230);
  603.             Beep(659.255, 230);
  604.         }else if(x==65) {
  605.             Beep(698.456, 230);
  606.             Beep(659.255, 460);
  607.             Beep(659.255, 230);
  608.         }else if(x==66) {
  609.             Beep(659.255, 230);
  610.         }else if(x==67) {
  611.             Beep(698.456, 690);
  612.             Beep(659.255, 460);
  613.         }else if(x==68) {
  614.             Beep(587.33, 460);
  615.             Beep(554.365, 230);    
  616.         }else if(x==69) {
  617.             Beep(659.255, 460);
  618.             Beep(587.33, 920);
  619.         }else if(x==70) {
  620.             Beep(0, 2070);
  621.            
  622.         }
  623.     x++;
  624.     system("CLS");
  625.     }
  626. };
  627.  
  628. int wstepakcentoczy(){
  629.    
  630.     HANDLE kolor;
  631.     kolor = GetStdHandle( STD_OUTPUT_HANDLE );
  632.    
  633.     system("CLS");
  634.     Sleep(2000);  
  635.     cout << "Akcent - Przez twe oczy zielone";
  636.     SetConsoleTextAttribute( kolor, 10 );
  637.     cout << "\nWstep";
  638.     SetConsoleTextAttribute( kolor, 8 );
  639.     //Takt pierwszy
  640.     Beep(587.33, 1380);
  641.     Beep(440, 230);
  642.     Beep(587.33, 230);
  643.     //Takt drugi
  644.     Beep(659.255, 230);
  645.     Beep(698.456, 460);
  646.     Beep(659.255, 230);
  647.     Beep(587.33, 460);
  648.     Beep(659.255, 460);
  649.     //Takt trzeci  
  650.     Beep(523.251, 1840);
  651.     //Takt czwarty
  652.     Beep(880, 460);
  653.     Beep(783.991, 230);
  654.     Beep(698.456, 460);
  655.     Beep(659.255, 690);
  656.     //Takt piąty
  657.     Beep(587.33, 1380);
  658.     Beep(440, 230);
  659.     Beep(587.33, 230);
  660.     //Takt szósty
  661.     Beep(659.255, 230);
  662.     Beep(698.456, 460);
  663.     Beep(659.255, 230);
  664.     Beep(698.456, 460);
  665.     Beep(783.991, 460);
  666.     //Takt siódmy
  667.     Beep(523.251, 1840);
  668.     //Takt ósmy
  669.     Beep(880, 460);
  670.     Beep(932.328, 230);
  671.     Beep(880, 460);
  672.     Beep(0, 690);  
  673.     //Takt dziewiąty
  674.     Beep(587.33, 1380);
  675.     Beep(440, 230);
  676.     Beep(587.33, 230);
  677.     //Takt dziesiąty
  678.     Beep(659.255, 230);
  679.     Beep(698.456, 460);
  680.     Beep(659.255, 230);
  681.     Beep(587.33, 460);
  682.     Beep(659.255, 460);
  683.     //Takt jedenasty    
  684.     Beep(523.251, 1840);
  685.     //Takt dwunasty
  686.     Beep(880, 460);
  687.     Beep(783.991, 230);
  688.     Beep(698.456, 460);
  689.     Beep(659.255, 690);
  690.     //Takt trzynasty
  691.     Beep(587.33, 1380);
  692.     Beep(440, 230);
  693.     Beep(587.33, 230);
  694.     //Takt czternasty
  695.     Beep(659.255, 230);
  696.     Beep(698.456, 460);
  697.     Beep(659.255, 230);
  698.     Beep(698.456, 460);
  699.     Beep(783.991, 460);
  700.     //Takt piętnasty
  701.     Beep(523.251, 1840);
  702.     //Takt szesnasty
  703.     Beep(880, 460);
  704.     Beep(932.328, 230);
  705.     Beep(880, 460);
  706.     Beep(0, 290);
  707.     system("CLS"); 
  708. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement