Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //mastermind
- /*before you start the game you have to create the txt-files highscores3.txt, highscores4.txt,
- highscores5.txt, highscores3bs.txt, highscores4bs.txt and highscores5bs.txt to store your
- highscores. in this files enter a high value (like
- 100 or 1000) in order to recognize your first score)
- otherwise download the full game at http://www.mediafire.com/?06ba2revh03q3ed */
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <fstream>
- #include <windows.h>
- using namespace std;
- int rep=4;
- int afunction (int a, int v, int b, int c, int d, int e)
- {
- if (v==a)
- {
- cout << "1 ";
- }
- else if (v==b or v==c or v==d or v==e)
- {
- cout << "0 ";
- }
- else
- {
- cout << "- ";
- }
- }
- int bfunction (int b, int w, int a, int c, int d, int e)
- {
- if (w==b)
- {
- cout << "1 ";
- }
- else if (w==a or w==c or w==d or w==e)
- {
- cout << "0 ";
- }
- else
- {
- cout << "- ";
- }
- }
- int cfunction (int c, int x, int a, int b, int d, int e)
- {
- if (x==c)
- {
- cout << "1 ";
- }
- else if (x==a or x==b or x==d or x==e)
- {
- cout << "0 ";
- }
- else
- {
- cout << "- ";
- }
- }
- int dfunction (int d, int y, int a, int b, int c, int e)
- {
- if (y==d)
- {
- cout << "1 ";
- }
- else if (y==a or y==b or y==c or y==e)
- {
- cout << "0 ";
- }
- else
- {
- cout << "- ";
- }
- }
- int efunction (int e, int z, int a, int b, int c, int d)
- {
- if (z==e)
- {
- cout << "1 ";
- }
- else if (z==a or z==b or z==c or z==d)
- {
- cout << "0 ";
- }
- else
- {
- cout << "- ";
- }
- }
- int newhighscore (int repeat)
- {
- do
- {
- cout << "+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*" << endl;
- cout << "+* +*" << endl;
- cout << "+* CONGRATULATIONS!! +*" << endl;
- cout << "+* +*" << endl;
- cout << "+* NEW HIGHSCORE +*" << endl;
- cout << "+* +*" << endl;
- cout << "+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*" << endl;
- Sleep(400);
- system("cls");
- Sleep(100);
- repeat-=1;
- }while (repeat>0);
- }
- int dead (int repeat)
- {
- do
- {
- cout << " .---. X-X-X-X-X-X-X-X-X-X-X-X-X-X .---. " << endl;
- cout << " ( # # ) | THE BOMB DETONATED!!! | ( # # ) " << endl;
- cout << " | ^ | X X | ^ | " << endl;
- cout << " :+++: | YOU ARE DEAD | :+++: " << endl;
- cout << " `'´ X-X-X-X-X-X-X-X-X-X-X-X-X-X `'´ " << endl;
- Sleep(400);
- system("cls");
- Sleep(100);
- repeat-=1;
- }while (repeat>0);
- }
- int highscores3 (int hs, int g)
- {
- if (g==1)
- {
- int us;
- string line;
- ifstream hscores3 ("highscores3.txt");
- getline (hscores3, line);
- cout << "Your actual highscore: " << line << endl;
- cout << "\nPlease re-enter your highscore in order to compare it with your gained score: \n" << endl;
- cin >> us;
- if (us>hs)
- {
- system("cls");
- newhighscore (rep);
- ofstream hscores3;
- hscores3.open ("highscores3.txt");
- hscores3 << hs;
- hscores3.close();
- }
- }
- else if (g==2)
- {
- int us;
- string line;
- ifstream hscores3bs ("highscores3bs.txt");
- getline (hscores3bs, line);
- cout << "Your actual highscore: " << line << endl;
- cout << "\nPlease re-enter your highscore in order to compare it with your gained score: \n" << endl;
- cin >> us;
- if (us>hs)
- {
- system("cls");
- newhighscore (rep);
- ofstream hscores3bs;
- hscores3bs.open ("highscores3bs.txt");
- hscores3bs << hs;
- hscores3bs.close();
- }
- }
- }
- int highscores4 (int hs, int g)
- {
- if (g==1)
- {
- int us;
- string line;
- ifstream hscores4 ("highscores4.txt");
- getline (hscores4, line);
- cout << "Your actual highscore: " << line << endl;
- cout << "\nPlease re-enter your highscore in order to compare it with your gained score: \n" << endl;
- cin >> us;
- if (us>hs)
- {
- system("cls");
- newhighscore (rep);
- ofstream hscores4;
- hscores4.open ("highscores4.txt");
- hscores4 << hs;
- hscores4.close();
- }
- }
- else if (g==2)
- {
- int us;
- string line;
- ifstream hscores4bs ("highscores4bs.txt");
- getline (hscores4bs, line);
- cout << "Your actual highscore: " << line << endl;
- cout << "\nPlease re-enter your highscore in order to compare it with your gained score: \n" << endl;
- cin >> us;
- if (us>hs)
- {
- system("cls");
- newhighscore (rep);
- ofstream hscores4bs;
- hscores4bs.open ("highscores4bs.txt");
- hscores4bs << hs;
- hscores4bs.close();
- }
- }
- }
- int highscores5 (int hs, int g)
- {
- if (g==1)
- {
- int us;
- string line;
- ifstream hscores5 ("highscores5.txt");
- getline (hscores5, line);
- cout << "Your actual highscore: " << line << endl;
- cout << "\nPlease re-enter your highscore in order to compare it with your gained score: \n" << endl;
- cin >> us;
- if (us>hs)
- {
- system("cls");
- newhighscore (rep);
- ofstream hscores5;
- hscores5.open ("highscores5.txt");
- hscores5 << hs;
- hscores5.close();
- }
- }
- else if (g==2)
- {
- int us;
- string line;
- ifstream hscores5bs ("highscores5bs.txt");
- getline (hscores5bs, line);
- cout << "Your actual highscore: " << line << endl;
- cout << "\nPlease re-enter your highscore in order to compare it with your gained score: \n" << endl;
- cin >> us;
- if (us>hs)
- {
- system("cls");
- newhighscore (rep);
- ofstream hscores5bs;
- hscores5bs.open ("highscores5bs.txt");
- hscores5bs << hs;
- hscores5bs.close();
- }
- }
- }
- int achievement5 (int hs)
- {
- if (hs==1)
- {
- ofstream award5;
- award5.open ("award5.txt");
- award5 << "The cheater: crack the 5-spots-code with only one attempts";
- award5.close();
- }
- }
- int achievement4 (int hs)
- {
- if (hs==1)
- {
- ofstream award4;
- award4.open ("award4.txt");
- award4 << "Hmmm...suspicious: crack the 4-spots-code with only one attempts";
- award4.close();
- }
- }
- int achievement3 (int hs)
- {
- if (hs==1)
- {
- ofstream award3;
- award3.open ("award3.txt");
- award3 << "The lucky one: crack the 3-spots-code with only one attempts";
- award3.close();
- }
- }
- int achievement5a (int hs)
- {
- if (hs>20)
- {
- ofstream award5a;
- award5a.open ("award5a.txt");
- award5a << "The unlucky: crack the 5-spots-code with more than 20 attempts";
- award5a.close();
- }
- }
- int achievement4a (int hs)
- {
- if (hs>15)
- {
- ofstream award4a;
- award4a.open ("award4a.txt");
- award4a << "The looser: crack the 4-spots-code with more than 15 attempts";
- award4a.close();
- }
- }
- int achievement3a (int hs)
- {
- if (hs>10)
- {
- ofstream award3a;
- award3a.open ("award3a.txt");
- award3a << "The stupid one: crack the 3-spots-code with more than 10 attempts";
- award3a.close();
- }
- }
- int achievementcr (int j)
- {
- if (j==6)
- {
- ofstream awardcr;
- awardcr.open ("awardcr.txt");
- awardcr << "Check out the staff: view the credits";
- awardcr.close();
- }
- }
- int achievementbs (int g)
- {
- if (g==2)
- {
- ofstream awardbs;
- awardbs.open ("awardbs.txt");
- awardbs << "The daredevil: play the bomb squad mode";
- awardbs.close();
- }
- }
- int achievementdeath (int r)
- {
- if (r==0)
- {
- ofstream awarddeath;
- awarddeath.open ("awarddeath.txt");
- awarddeath << "Meeting with death: 'die' in the bomb squad mode";
- awarddeath.close();
- }
- }
- int control (int a, int b, int c, int d, int e, int v, int w, int x, int y, int z, int l, int m, int n, int o, int p, int k)
- {
- srand (time(NULL));
- /////////////////////////////////////////////////////////////////
- l=rand() % 5;
- if (l==0)
- {
- afunction (a, v, b, c, d, e);
- }
- else if (l==1)
- {
- bfunction (b, w, a, c, d, e);
- }
- else if (l==2)
- {
- cfunction (c, x, a, b, d, e);
- }
- else if (k==3)
- {
- goto aaskip;
- }
- else if (l==3)
- {
- dfunction (d, y, a, b, c, e);
- }
- else if (k==4)
- {
- goto aaskip;
- }
- else if (l==4 and k==5)
- {
- efunction (e, z, a, b, c, d);
- }
- aaskip:
- ////////////////////////////////////////////////////////////////////
- do
- {
- m=rand() % 5;
- } while (m==l);
- if (m==0)
- {
- afunction (a, v, b, c, d, e);
- }
- else if (m==1)
- {
- bfunction (b, w, a, c, d, e);
- }
- else if (m==2)
- {
- cfunction (c, x, a, b, d, e);
- }
- else if (k==3)
- {
- goto abskip;
- }
- else if (m==3)
- {
- dfunction (d, y, a, b, c, e);
- }
- else if (k==4)
- {
- goto abskip;
- }
- else if (m==4 and k==5)
- {
- efunction (e, z, a, b, c, d);
- }
- abskip:
- //////////////////////////////////////////////////////////////////////////
- do
- {
- n=rand() % 5;
- } while (n==l or n==m);
- if (n==0)
- {
- afunction (a, v, b, c, d, e);
- }
- else if (n==1)
- {
- bfunction (b, w, a, c, d, e);
- }
- else if (n==2)
- {
- cfunction (c, x, a, b, d, e);
- }
- else if (k==3)
- {
- goto acskip;
- }
- else if (n==3)
- {
- dfunction (d, y, a, b, c, e);
- }
- else if (k==4)
- {
- goto acskip;
- }
- else if (n==4 and k==5)
- {
- efunction (e, z, a, b, c, d);
- }
- acskip:
- ///////////////////////////////////////////////////////////////////////////////
- do
- {
- o=rand() % 5;
- } while (o==l or o==m or o==n);
- if (o==0)
- {
- afunction (a, v, b, c, d, e);
- }
- else if (o==1)
- {
- bfunction (b, w, a, c, d, e);
- }
- else if (o==2)
- {
- cfunction (c, x, a, b, d, e);
- }
- else if (k==3)
- {
- goto adskip;
- }
- else if (o==3)
- {
- dfunction (d, y, a, b, c, e);
- }
- else if (k==4)
- {
- goto adskip;
- }
- else if (o==4 and k==5)
- {
- efunction (e, z, a, b, c, d);
- }
- adskip:
- /////////////////////////////////////////////////////////////////////////
- do
- {
- p=rand() % 5;
- } while (p==l or p==m or p==n or p==o);
- if (p==0)
- {
- afunction (a, v, b, c, d, e);
- }
- else if (p==1)
- {
- bfunction (b, w, a, c, d, e);
- }
- else if (p==2)
- {
- cfunction (c, x, a, b, d, e);
- }
- else if (k==3)
- {
- goto aeskip;
- }
- else if (p==3)
- {
- dfunction (d, y, a, b, c, e);
- }
- else if (k==4)
- {
- goto aeskip;
- }
- else if (p==4 and k==5)
- {
- efunction (e, z, a, b, c, d);
- }
- aeskip:
- cout << endl;
- }
- int classichs()
- {
- string line3;
- ifstream hscores3 ("highscores3.txt");
- getline (hscores3, line3);
- cout << "Your actual highscore for 3 spots: " << line3 << " attempts\n" << endl;
- string line4;
- ifstream hscores4 ("highscores4.txt");
- getline (hscores4, line4);
- cout << "Your actual highscore for 4 spots: " << line4 << " attempts\n" << endl;
- string line5;
- ifstream hscores5 ("highscores5.txt");
- getline (hscores5, line5);
- cout << "Your actual highscore for 5 spots: " << line5 << " attempts\n" << endl;
- }
- int bombsquadhs()
- {
- string line3;
- ifstream hscores3bs ("highscores3bs.txt");
- getline (hscores3bs, line3);
- cout << "Your actual highscore for 3 spots: " << line3 << " attempts\n" << endl;
- string line4;
- ifstream hscores4bs ("highscores4bs.txt");
- getline (hscores4bs, line4);
- cout << "Your actual highscore for 4 spots: " << line4 << " attempts\n" << endl;
- string line5;
- ifstream hscores5bs ("highscores5bs.txt");
- getline (hscores5bs, line5);
- cout << "Your actual highscore for 5 spots: " << line5 << " attempts\n" << endl;
- }
- int main()
- {
- int a, b, c, d, e, v, w, x, y, z, l, m, n, o, p, k, j, q, hscore, g, h;
- menu:
- cout << "MASTERMIND (powered by D-CODES) V 4.0" << endl;
- cout << "For questions, updates and new programs follow me on twitter: @d_codes_\n" << endl;
- cout << "Main menu: \n \n" << endl;
- cout << "Rules(1) \n" << endl;
- cout << "Controls(2) \n" << endl;
- cout << "Play(3) \n" << endl;
- cout << "Highscores(4) \n" << endl;
- cout << "Achievements(5) \n" << endl;
- cout << "Credits(6) \n" << endl;
- cout << "Exit(7) \n" << endl;
- cin >> j;
- achievementcr (j);
- cout << endl;
- if (j==1)
- {
- system("cls");
- cout << "Rules:\n" << endl;
- cout << "'a b c (d) (e)' is the code you have to crack, it consists in integer numbers" << endl;
- cout << "between 0 and 9. Every value appears max. one time. After the" << endl;
- cout << "confirmation of your code there will appear a series of '1', '0' and '-':" << endl;
- cout << "'1' means that one value of your code is at the right position." << endl;
- cout << "'0' means that one value is contained in the code but on the wrong position." << endl;
- cout << "'-' means that one value isn't contained in the code." << endl;
- cout << "ATTENTION: the '1', '0' and '-' are not in the right order!\n" << endl;
- cout << "Have fun! \n" << endl;
- cout << "Quit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- goto menu;
- }
- else if (j==2)
- {
- system("cls");
- cout << "Divide your selected values by pressing 'Enter' or 'Space'" << endl;
- cout << "\nQuit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- goto menu;
- }
- else if (j==3)
- {
- system("cls");
- cout << "Select game mode: \n" << endl;
- cout << "\nClassic(1)" << endl;
- cout << "\nBomb squad(2)" << endl;
- cin >> g;
- achievementbs (g);
- if (g==1)
- {
- wrong:
- system("cls");
- cout << "How many spots should the code have? ";
- cin >> k;
- if (k>5 || k<3)
- {
- cout << "You can just play with 3-5 spots!\n" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- goto wrong;
- }
- srand (time(NULL));
- a=rand() % 10;
- do
- {
- b=rand() % 10;
- } while (b==a);
- do
- {
- c=rand() % 10;
- } while (c==a or c==b);
- if (k==3)
- {
- goto askip;
- }
- do
- {
- d=rand() % 10;
- } while (d==a or d==b or d==c);
- if (k==4)
- {
- goto askip;
- }
- do
- {
- e=rand() % 10;
- } while (e==a or e==b or e==c or e==d);
- cout << endl;
- askip:
- system("cls");
- if (k==3)
- {
- cout << "a b c" << endl;
- //cout << a << b << c;
- }
- else if (k==4)
- {
- cout << "a b c d" << endl;
- //cout << a << b << c << d;
- }
- else if (k==5)
- {
- cout << "a b c d e" << endl;
- //cout << a << b << c << d << e;
- }
- hscore=0;
- aloop:
- hscore++;;
- cout << endl;
- cout << "Please enter the values (0-9):" << endl;
- cin >> v;
- cin >> w;
- cin >> x;
- if (k==3)
- {
- goto aovertake;
- }
- cin >> y;
- if (k==4)
- {
- goto aovertake;
- }
- cin >> z;
- aovertake:
- cin.get()=='\n';
- cout << " Confirm(ENTER)? Quit(0)?";
- if (cin.get()=='\n')
- {
- goto abuseless;
- }
- else
- {
- system("cls");
- goto menu;
- }
- abuseless:
- if ((j==3 && (v==w or v==x or w==x)) || (j==4 && (v==w or v==x or v==y or w==x or w==y or x==y)) || (j==5 && (v==w or v==x or v==y or v==z or w==x or w==y or w==z or x==y or x==z or y==z)))
- {
- cout << "\nYou entered the same value for 2 or more spots!" << endl;
- goto aloop;
- }
- //need some help: how to check if input is an int or not??? (Twitter: @MDell95)
- control (a, b, c, d, e, v, w, x, y, z, l, m, n, o, p, k);
- }
- else if (g==2)
- {
- int att;
- srand (time(NULL));
- h=rand() % 3;
- if (h==0)
- {
- k=3;
- }
- else if (h==1)
- {
- k=4;
- }
- else if (h==2)
- {
- k=5;
- }
- if (k==3)
- {
- while (att<7)
- {
- srand (time(NULL));
- att=rand() % 11;
- }
- }
- else if (k==4)
- {
- while (att<8)
- {
- srand (time(NULL));
- att=rand() % 16;
- }
- }
- else if (k==5)
- {
- while (att<9)
- {
- srand (time(NULL));
- att=rand() % 21;
- }
- }
- srand (time(NULL));
- a=rand() % 10;
- do
- {
- b=rand() % 10;
- } while (b==a);
- do
- {
- c=rand() % 10;
- } while (c==a or c==b);
- if (k==3)
- {
- goto skip;
- }
- do
- {
- d=rand() % 10;
- } while (d==a or d==b or d==c);
- if (k==4)
- {
- goto skip;
- }
- do
- {
- e=rand() % 10;
- } while (e==a or e==b or e==c or e==d);
- cout << endl;
- skip:
- system("cls");
- if (k==3)
- {
- cout << "a b c" << endl;
- //cout << a << b << c;
- }
- else if (k==4)
- {
- cout << "a b c d" << endl;
- //cout << a << b << c << d;
- }
- else if (k==5)
- {
- cout << "a b c d e" << endl;
- //cout << a << b << c << d << e;
- }
- hscore=0;
- loop:
- hscore++;;
- cout << endl;
- cout << "You have " << att << " more attempts... Please enter the values (0-9):" << endl;
- cin >> v;
- cin >> w;
- cin >> x;
- if (k==3)
- {
- goto overtake;
- }
- cin >> y;
- if (k==4)
- {
- goto overtake;
- }
- cin >> z;
- overtake:
- cin.get()=='\n';
- cout << " Confirm(ENTER)? Quit(0)?";
- if (cin.get()=='\n')
- {
- goto buseless;
- }
- else
- {
- system("cls");
- goto menu;
- }
- buseless:
- if ((j==3 && (v==w or v==x or w==x)) || (j==4 && (v==w or v==x or v==y or w==x or w==y or x==y)) || (j==5 && (v==w or v==x or v==y or v==z or w==x or w==y or w==z or x==y or x==z or y==z)))
- {
- cout << "\nYou entered the same value for 2 or more spots!" << endl;
- goto loop;
- }
- //need some help: how to check if input is an int or not??? (Twitter: @MDell95)
- control (a, b, c, d, e, v, w, x, y, z, l, m, n, o, p, k);
- att-=1;
- if (att==0)
- {
- achievementdeath (att);
- system("cls");
- dead (rep);
- system("cls");
- goto menu;
- }
- }
- ///////////////////////////////////////////////////////////////////////////
- if (v==a and w==b and x==c and y==d and z==e and k==5)
- {
- cout << endl;
- cout << "You've cracked the code!!" << endl;
- cout << "Quit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- highscores5 (hscore, g);
- achievement5 (hscore);
- achievement5a (hscore);
- system("cls");
- goto menu;;
- }
- if (v==a and w==b and x==c and y==d and k==4)
- {
- cout << endl;
- cout << "You've cracked the code!!" << endl;
- cout << "Quit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- highscores4 (hscore, g);
- achievement4 (hscore);
- achievement4a (hscore);
- system("cls");
- goto menu;
- }
- if (v==a and w==b and x==c and k==3)
- {
- cout << endl;
- cout << "You've cracked the code!!" << endl;
- cout << "Quit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- highscores3 (hscore, g);
- achievement3 (hscore);
- achievement3a (hscore);
- system("cls");
- goto menu;
- }
- goto loop;
- } // '}' of else if for play(3)
- else if (j==4)
- {
- system("cls");
- cout << "\nHighscores (classic):\n" << endl;
- classichs();
- cout << "\nHighscores (bomb squad):\n" << endl;
- bombsquadhs();
- cout << "\nQuit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- goto menu;
- }
- else if (j==5)
- {
- system("cls");
- cout << endl;
- string line5;
- ifstream aw5 ("award5.txt");
- getline (aw5, line5);
- if (aw5.is_open())
- {
- cout << line5 << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string line5a;
- ifstream aw5a ("award5a.txt");
- getline (aw5a, line5a);
- if (aw5a.is_open())
- {
- cout << line5a << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string line4;
- ifstream aw4 ("award4.txt");
- getline (aw4, line4);
- if (aw4.is_open())
- {
- cout << line4 << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string line4a;
- ifstream aw4a ("award4a.txt");
- getline (aw4a, line4a);
- if (aw4a.is_open())
- {
- cout << line4a << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string line3;
- ifstream aw3 ("award3.txt");
- getline (aw3, line3);
- if (aw3.is_open())
- {
- cout << line3 << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string line3a;
- ifstream aw3a ("award3a.txt");
- getline (aw3a, line3a);
- if (aw3a.is_open())
- {
- cout << line3a << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string linecr;
- ifstream awcr ("awardcr.txt");
- getline (awcr, linecr);
- if (awcr.is_open())
- {
- cout << linecr << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string linebs;
- ifstream awbs ("awardbs.txt");
- getline (awbs, linebs);
- if (awbs.is_open())
- {
- cout << linebs << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- string linede;
- ifstream awde ("awarddeath.txt");
- getline (awde, linede);
- if (awde.is_open())
- {
- cout << linede << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- if (aw5.is_open() && aw5a.is_open() && aw4.is_open() && aw4a.is_open() && aw3.is_open() && aw3a.is_open() && awcr.is_open() && awbs.is_open() && awde.is_open())
- {
- ofstream awardcoll;
- awardcoll.open ("awardcoll.txt");
- awardcoll << "The collector: get all achievements";
- awardcoll.close();
- }
- string linecoll;
- ifstream awcoll ("awardcoll.txt");
- getline (awcoll, linecoll);
- if (awcoll.is_open())
- {
- cout << linecoll << endl << endl;
- }
- else
- {
- cout << "?????????" << endl << endl;
- }
- cout << "\nQuit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- goto menu;
- }
- else if (j==6)
- {
- system("cls");
- cout << "\n DELL'software" << endl;
- cout << "\n directed by" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n engineering" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n written by" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n producer" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n office manager" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n director of marketing" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n IT manager" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n systemadimistrator" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n information system analyst" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n design leads" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n game testers" << endl;
- cout << " Manuel Dell" << endl;
- cout << "\n special thanks" << endl;
- cout << " codeblock.org" << endl;
- cout << " cplusplus.com" << endl;
- cout << " twitter.com" << endl;
- cout << " pastebin.com" << endl;
- cout << " mediafire.com\n" << endl;
- cout << endl << "Quit?" << endl;
- cin.get()=='\n';
- cin.get()=='\n';
- system("cls");
- goto menu;
- }
- else if (j==7)
- {
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement