Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- #include <time.h>
- #include <stdlib.h>
- #include <conio.h>
- using namespace std;
- int akcentoczy();
- int wstepakcentoczy();
- string tab[169] = {
- "Odkad","zobaczylem","Ciebie",
- "Nie","moge","jesc,","nie","moge","spac",
- "Jak","do","tego","doszlo,","nie","wiem",
- "Milosc","o","sobie","dala","znac", // 0 - 19
- "Co","poradzic","moge","na","to",
- "Ze","milosc","przyszla","wlasnie","dzis",
- "Ze","w","sercu","mym","jest","lato",
- "A","w","moich","myslach","jestes","Ty", //20 - 41
- "Przez","te","oczy,","te","oczy","zielone","oszalalem",
- "Gwiazdy","chyba","Twym","oczom","oddaly","caly","blask",
- "A","ja","serce","milosci","spragnione","Ci","oddalem",
- "Tak","zakochac,","zakochac","sie","mozna","tylko","raz", //42-69
- " ", //70
- "W","mych","ramionach","Cie","ukryje",
- "U","stop","Ci","zloze","caly","swiat",
- "Serce","me","dla","ciebie","bije",
- "I","czeka","na","Twoj","maly","znak",
- "Jeden","usmiech","Twoj","wystarczy",
- "I","moje","serce","powie","rytm",
- "O","Twa","milosc","bede","walczyl",
- "O","milosc","walczyc","to","nie","wstyd", //71 - 112
- "Przez","te","oczy,","te","oczy","zielone","oszalalem",
- "Gwiazdy","chyba","Twym","oczom","oddaly","caly","blask",
- "A","ja","serce","milosci","spragnione","Ci","oddalem",
- "Tak","zakochac,","zakochac","sie","mozna","tylko","raz" //113 - 140
- "Przez","te","oczy,","te","oczy","zielone","oszalalem",
- "Gwiazdy","chyba","Twym","oczom","oddaly","caly","blask",
- "A","ja","serce","milosci","spragnione","Ci","oddalem",
- "Tak","zakochac,","zakochac","sie","mozna","tylko","raz", //141 - 168
- " ", // 169
- };
- int main() {
- int wybor;
- HANDLE kolor;
- kolor = GetStdHandle( STD_OUTPUT_HANDLE );
- SetConsoleTextAttribute( kolor, 8 );
- while((wybor!=1) && (wybor!=2)){ //Menu glowne
- cout << "Witaj w karaoke !" << endl;
- cout << endl;
- cout << "Wybierz utwor: " << endl;
- SetConsoleTextAttribute( kolor, 10 );
- cout << "1. Akcent - Przez twe oczy zielone" << endl;
- SetConsoleTextAttribute( kolor, 8 );
- cout << "Wybieram: ";
- SetConsoleTextAttribute( kolor, 10 );
- cin>>wybor;
- SetConsoleTextAttribute( kolor, 8 );
- if(wybor==1) {
- // wstepakcentoczy();
- akcentoczy();
- } else if(wybor==2) {
- //Tu cos kiedys bedzie :P
- } else if(wybor==45) { //Dla programistow
- system ( "cls" );
- } else {
- system ( "cls" );
- cin.clear();
- cin.sync();
- }
- Sleep(1000); //Menu koncowe
- cout << "Czy chcesz zakonczyc gre ?" << endl;
- SetConsoleTextAttribute( kolor, 10 );
- cout << "1. Tak" << endl;
- cout << "2. Nie" << endl;
- SetConsoleTextAttribute( kolor, 8 );
- cout << "Wybieram: ";
- SetConsoleTextAttribute( kolor, 10 );
- cin >> wybor;
- SetConsoleTextAttribute( kolor, 8 );
- if(wybor==1) {
- return 0;
- } else if(wybor==2) {
- wybor = 0;
- system ( "cls" );
- } else {
- system ( "cls" );
- cin.clear();
- cin.sync();
- }
- }
- cin.get();
- cin.get();
- return 0;
- }
- int akcentoczy(){
- HANDLE kolor;
- kolor = GetStdHandle( STD_OUTPUT_HANDLE );
- SetConsoleTextAttribute( kolor, 3 );
- int x=0;
- system ( "cls" );
- Sleep(1000);
- while(x <=169) {
- if(x < 3) { //* 1 linijka
- for(int i = 0; i <= 2; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 3 && x <= 8 ) { //* 2 linijka
- for(int i = 3; i <= 8; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 9 && x <= 14 ) { //* 3 linijka
- for(int i = 9; i <= 14; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 15 && x <= 19 ) { //* 4 linijka
- for(int i = 15; i <= 19; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 20 && x <= 24 ) { //* 5 linijka
- for(int i = 20; i <= 24; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 25 && x <= 29 ) { //* 6 linijka
- for(int i = 25; i <= 29; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 30 && x <= 35 ) { //* 7 linijka
- for(int i = 30; i <= 35; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 36 && x <= 41 ) { //* 8 linijka
- for(int i = 36; i <= 41; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 42 && x <= 48 ) { //* 9 linijka
- for(int i = 42; i <= 48; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 49 && x <= 55 ) { //* 10 linijka
- for(int i = 49; i <= 55; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 56 && x <= 62 ) { //* 11 linijka
- for(int i = 56; i <= 62; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 63 && x <= 69 ) { //* 12 linijka
- for(int i = 63; i <= 69; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 71 && x <= 75 ) { //* 13 linijka
- for(int i = 71; i <= 75; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 76 && x <= 81 ) { //* 14 linijka
- for(int i = 76; i <= 81; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 82 && x <= 86 ) { //* 15 linijka
- for(int i = 82; i <= 86; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 87 && x <= 92 ) { //* 16 linijka
- for(int i = 87; i <= 92; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 93 && x <= 96 ) { //* 17 linijka
- for(int i = 93; i <= 96; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 97 && x <= 101 ) { //* 18 linijka
- for(int i = 97; i <= 101; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 102 && x <= 106 ) { //* 19 linijka
- for(int i = 102; i <= 106; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 107 && x <= 112 ) { //* 20 linijka
- for(int i = 107; i <= 112; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 113 && x <= 119 ) { //* 21 linijka
- for(int i = 113; i <= 119; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 120 && x <= 126 ) { //* 22 linijka
- for(int i = 120; i <= 126; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if(x >= 127 && x <= 133 ) { //* 23 linijka
- for(int i = 127; i <= 133; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- } else if (x >= 134 && x <= 140 ) { //* 24 linijka
- for(int i = 134; i <= 140; i++) {
- if(x == i ) {
- SetConsoleTextAttribute( kolor, 10 );
- cout << tab[i] << " ";
- SetConsoleTextAttribute( kolor, 8 );
- }
- if(x != i) {
- cout << tab[i] << " ";
- }
- }
- }
- if(x==0) {
- Beep(440, 230); //Odkąd
- Beep(440,230);
- } else if (x==1) {
- Beep(440, 230); //Zobaczyłem
- Beep(440,230);
- Beep(698.456, 460);
- Beep(659.255,230);
- } else if (x==2) {
- Beep(466.164, 460); //Ciebie
- Beep(466.164, 1610);
- Beep(0, 230); //----------
- } else if (x==3) {
- Beep(523.251, 230); //Nie
- } else if (x==4) {
- Beep(523.251,230); //Moge
- Beep(523.251, 230);
- } else if (x==5) {
- Beep(783.991,230); //Jeść
- } else if (x==6) {
- Beep(659.255,230); //Nie
- } else if (x==7) {
- Beep(587.330,230); //Moge
- Beep(523.251,230);
- } else if(x==8) {
- Beep(587.330, 230); //Spac
- Beep(523.251, 690);
- Beep(0, 920); //----------
- } else if(x==9) {
- Beep(440, 230); //Jak
- } else if(x==10) {
- Beep(440, 230); //Do
- } else if(x==11) {
- Beep(440, 230); //Tego
- Beep(440, 230);
- } else if(x==12) {
- Beep(698.456, 460); //Doszło
- Beep(659.255,230);
- } else if(x==13) {
- Beep(466.164, 460); //Nie
- } else if(x==14) {
- Beep(466.164, 1610); //Wiem
- Beep(0, 230); //----------
- } else if(x==15) {
- Beep(659.255, 230); //Milosc
- Beep(659.255, 230);
- } else if(x==16) {
- Beep(659.255, 230); //O
- } else if(x==17) {
- Beep(698.456, 230); //Sobie
- Beep(659.255, 230);
- } else if(x==18) {
- Beep(587.330, 230); //Dała
- Beep(554.365, 230);
- } else if(x==19) {
- Beep(587.330, 460); //Znac
- Beep(0, 1380);
- }else if(x==20) {
- Beep(440, 230); //Co
- }else if(x==21) {
- Beep(440, 230); //Poradzic
- Beep(440, 230);
- Beep(440, 230);
- }else if(x==22) {
- Beep(698.456, 460); //Moge
- Beep(659.255, 230);
- }else if(x==23) {
- Beep(466.164, 460); //Na
- }else if(x==24) {
- Beep(466.164, 1610); //To
- }else if(x==25) {
- Beep(0, 230); //----------
- Beep(523.251, 230); //Że
- }else if(x==26) {
- Beep(523.251, 230); //Milosc
- Beep(523.251, 230);
- }else if(x==27) {
- Beep(783.991, 230); //Przyszla
- Beep(659.255, 230);
- }else if(x==28) {
- Beep(587.330, 230); //Wlasnie
- Beep(523.251, 230);
- }else if(x==29) {
- Beep(587.330, 230); //Dzis
- Beep(523.251, 690);
- Beep(0, 920); //----------
- }else if(x==30) {
- Beep(0, 230); //----------
- Beep(440, 230); //Ze
- }else if(x==31) {
- Beep(0, 0); //W
- }else if(x==32) {
- Beep(440, 230); //Sercu
- Beep(440, 230);
- }else if(x==33) {
- Beep(698.456, 460); //Mym
- }else if(x==34) {
- Beep(659.255, 230); //Jest
- }else if(x==35) {
- Beep(466.164, 460); //Lato
- Beep(466.164, 1610);
- Beep(0, 230); //----------
- }else if(x==36) {
- Beep(659.255, 230); //A
- }else if(x==37) {
- Beep(0,0); //W
- }else if(x==38) {
- Beep(659.255, 230); //Moich
- Beep(659.255, 230);
- }else if(x==39) {
- Beep(698.456, 230); //Myslach
- Beep(659.255, 230);
- }else if(x==40) {
- Beep(587.330, 230); //Jestes
- Beep(554.365, 230);
- }else if(x==41) {
- Beep(587.330, 460); //Ty
- Beep(0, 1380); //----------
- }else if(x==42) {
- Beep(587.33, 460); //Przez
- }else if(x==43) {
- Beep(659.255, 460); //twe
- }else if(x==44) {
- Beep(698.456, 230); //Oczy
- Beep(698.456, 230);
- }else if(x==45) {
- Beep(659.255, 230); //Twe
- }else if(x==46) {
- Beep(698.456, 460); //Oczy
- Beep(698.456, 230);
- }else if(x==47) {
- Beep(659.255, 230); //Zielone
- Beep(698.456, 460);
- Beep(587.330, 460);
- Beep(0, 230);
- }else if(x==48) {
- Beep(698.456, 460); //Oszalałem
- Beep(880, 460);
- Beep(932.328, 690);
- Beep(587.330, 690);
- Beep(0, 460);
- }else if(x==49) {
- Beep(587.330, 460); //Gwiazdy
- Beep(587.330, 460);
- }else if(x==50) {
- Beep(659.255, 230); //Chyba
- Beep(659.255, 230);
- }else if(x==51) {
- Beep(587.330, 230); //Twym
- }else if(x==52) {
- Beep(659.255, 460); //oczyn
- Beep(659.255, 230);
- }else if(x==53) {
- Beep(587.330, 230); //Oddały
- Beep(659.255, 460);
- Beep(523.251, 690);
- Beep(0, 230);
- }else if(x==54) {
- Beep(932.328, 230); //Cały
- Beep(783.991, 460);
- }else if(x==55) {
- Beep(880, 1150); //Blask
- Beep(783.991, 230);
- Beep(698.456, 230);
- Beep(659.255, 460);
- Beep(0, 230);
- }else if(x==56) {
- Beep(587.330, 460); //A
- }else if(x==57) {
- Beep(659.255, 460); //Me
- }else if(x==58) {
- Beep(698.456, 230); //Serce
- Beep(698.456, 230);
- }else if(x==59) {
- Beep(659.255, 230); //Miłości
- Beep(698.456, 460);
- Beep(698.456, 230);
- }else if(x==60) {
- Beep(659.255, 230); //Spragnione
- Beep(698.456, 460);
- Beep(587.33, 460);
- Beep(0, 230);
- }else if(x==61) {
- Beep(698.456, 460); //Ci
- }else if(x==62) {
- Beep(880, 460); //Oddałem
- Beep(932.328, 690);
- Beep(587.330, 690);
- Beep(0, 460);
- }else if(x==63) {
- Beep(783.991, 460);
- }else if(x==64) {
- Beep(698.456, 460);
- Beep(659.255, 230);
- Beep(659.255, 230);
- }else if(x==65) {
- Beep(698.456, 230);
- Beep(659.255, 460);
- Beep(659.255, 230);
- }else if(x==66) {
- Beep(659.255, 230);
- }else if(x==67) {
- Beep(698.456, 690);
- Beep(659.255, 460);
- }else if(x==68) {
- Beep(587.33, 460);
- Beep(554.365, 230);
- }else if(x==69) {
- Beep(659.255, 460);
- Beep(587.33, 920);
- }else if(x==70) {
- Beep(0, 2070);
- }
- x++;
- system("CLS");
- }
- };
- int wstepakcentoczy(){
- HANDLE kolor;
- kolor = GetStdHandle( STD_OUTPUT_HANDLE );
- system("CLS");
- Sleep(2000);
- cout << "Akcent - Przez twe oczy zielone";
- SetConsoleTextAttribute( kolor, 10 );
- cout << "\nWstep";
- SetConsoleTextAttribute( kolor, 8 );
- //Takt pierwszy
- Beep(587.33, 1380);
- Beep(440, 230);
- Beep(587.33, 230);
- //Takt drugi
- Beep(659.255, 230);
- Beep(698.456, 460);
- Beep(659.255, 230);
- Beep(587.33, 460);
- Beep(659.255, 460);
- //Takt trzeci
- Beep(523.251, 1840);
- //Takt czwarty
- Beep(880, 460);
- Beep(783.991, 230);
- Beep(698.456, 460);
- Beep(659.255, 690);
- //Takt piąty
- Beep(587.33, 1380);
- Beep(440, 230);
- Beep(587.33, 230);
- //Takt szósty
- Beep(659.255, 230);
- Beep(698.456, 460);
- Beep(659.255, 230);
- Beep(698.456, 460);
- Beep(783.991, 460);
- //Takt siódmy
- Beep(523.251, 1840);
- //Takt ósmy
- Beep(880, 460);
- Beep(932.328, 230);
- Beep(880, 460);
- Beep(0, 690);
- //Takt dziewiąty
- Beep(587.33, 1380);
- Beep(440, 230);
- Beep(587.33, 230);
- //Takt dziesiąty
- Beep(659.255, 230);
- Beep(698.456, 460);
- Beep(659.255, 230);
- Beep(587.33, 460);
- Beep(659.255, 460);
- //Takt jedenasty
- Beep(523.251, 1840);
- //Takt dwunasty
- Beep(880, 460);
- Beep(783.991, 230);
- Beep(698.456, 460);
- Beep(659.255, 690);
- //Takt trzynasty
- Beep(587.33, 1380);
- Beep(440, 230);
- Beep(587.33, 230);
- //Takt czternasty
- Beep(659.255, 230);
- Beep(698.456, 460);
- Beep(659.255, 230);
- Beep(698.456, 460);
- Beep(783.991, 460);
- //Takt piętnasty
- Beep(523.251, 1840);
- //Takt szesnasty
- Beep(880, 460);
- Beep(932.328, 230);
- Beep(880, 460);
- Beep(0, 290);
- system("CLS");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement