Home > C++ > C++ Project on Computer Memory Game

C++ Project on Computer Memory Game

Download Project
Share Facebook Twitter Orkut SMS

COMPUTER MEMORY GAME

Quiz

//    *********** COMPUTER  MEMORY  GAME ****************
#include<ctype .h>
#include<dos .h>
# include<iostream .h>
#include<stdio .h>
#include<conio .h>
#include<string .h>
void score();
int f=0;
class memory
  {
  public : void Q1();
	   void Q2();
	   void Q3();
	   void Q4();
	   void Q5();
	   void Q6();
	   void Q7();
	   void Q8();
	   void Q9();
	   void Q10();
	   void Q11();
	   void Q12();
	   void Q13();
	   void Q14();
	   void Q15();
	   void L1();
	   void L2();
	   void L3();
	   void L4();
	   void L5();
	   void L6();
	   void L7();
	   void L8();
	   void L9();
	   void L10();
	   void L11();
	   void L12();
	   void L13();
	   void L14();
	   void L15();
}mm;
void main()
{
clrscr();
int ch;
do
{
clrscr();
gotoxy(23,3);cout< <"\n";
cout<<"\n\t*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\a\n\t  *.*.* WELCOME TO THE WORLD OF MEMORY GAME *.*.*  ";
cout<<"\n\t*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n  ";delay(1500);
cout<<"\a\a\b\b\n \t*.*.*.*.*.*.*.*.*. M E N U *.*.*.*.*.*.*.*.*.*.*.";
delay(1000);cout<<"\n \t1. Game for name of Countries ";
delay(1000);cout<<"\n \t2. Game for name of Important Personalities ";
delay(1000);cout<<"\n \t3. Game for name of Cricket Players  ";
delay(1000);cout<<"\n \t4. Help";
delay(1000);cout<<"\n \t5. Exit";
delay(1000);cout<<"\n\t Enter your choice :- ";
cin>>ch;
if(ch==1)
   {
    clrscr();
    mm.Q1();
    gotoxy(40,10);cout< <"\aYOUR FINAL SCORE IS:- ";
    score();
   }
if(ch==2)
   {
   clrscr();
   mm.L1();cout<<"\aYOUR FINAL SCORE IS:-";
   score();
   }
if(ch==3)
   {
   clrscr();
   cout<<"\a\a\n\nYOU ARE ADVISED TO WATCH E S P N BEFORE PLAYING THIS  PART";
   getch();
   }
if(ch==4)
   {
   clrscr();
   cout<<"\n\n*.*.*.*.*.*.*.*.*.*.*  H  E  L  P  *.*.*.*.*.*.*.*.*.*.*";
   cout<<"\n\n  YOU WILL BE SEEING NAMES OF THINGS WHICH WILL DISAPPEAR ";
   cout<<"\n\n  AFTER A FEW SECONDS. YOU WILL THEN HAVE TO ENTER WHAT ";
   cout<<"\n\n  YOU HAVE SEEN. ANY WRONG ENTRY YOU LOSE THE GAME ";
   cout<<"\n\n  OTHERWISE YOU MOVE TO THE NEXT STEP. FOR EVERY CORRECT ";
   cout<<"\n\n  STEP YOU GET 100 POINTS.                                           ";
 
   getch();
   }
if(ch==5)
  {
  clrscr();
  break;
 }
 
}while(ch<=5);
gotoxy(40,12);
cout<<"\n\t*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\a\a\b\a\a\n \t*.*.* THANK YOU FOR PLAYING THIS GAME *.*.* ";
cout<<"\n\t*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
}
 
void memory::Q1()
{
  clrscr();
  char a[]="INDIA";
  char b[]="PAKISTAN";
  char c[10],d[10];
  cout<<"\n"<<a<<"\n"<<b;
  delay(1200);
  clrscr();
  cout<<"\n** ENTER WHAT YOU HAVE SEEN :- ";
  cout<<"\n";
  cin>>c>>d;
  strupr(c);
  strupr(d);
  if((strcmp(a,c)==0)&&(strcmp(b,d)==0))
    {
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
    getch();
    score();
    cout<<"\n*..*..* PRESS ANY KEY TO CONTINUE *..*..* ";
    getch();
    clrscr();
    mm.Q2();
    }
  else
   {
   clrscr();
   cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER ** ";
   cout<<"\n**. TRY AGAIN **.  ";
   getch();
   }
}
 
 void memory::Q2()
   {
   clrscr();
   char c[20],d[20];
   char a[20]="CHINA";
   char b[20]="BANGLADESH";
   cout<<a<<"    "<<"\n"<<b;
   delay(1200);
   clrscr();
   cout<<"**ENTER WHAT YOU HAVE SEEN";
   cout<<"\n";
   cin>>c>>d;
   strupr(c);
   strupr(d);
   if((strcmp(a,c)==0)&&(strcmp(b,d)==0))
      {
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.*CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER*.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
      getch();
      score();
      cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
      getch();
      clrscr();
      mm.Q3();
      }
   else
      {
      cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
      cout<<"\n** TRY AGAIN **";
      getch();
      }
}
 
void memory::Q3()
{
char c[10],d[10];
char a[]="NEPAL";
char b[]="AUSTRALIA";
cout<<a<<"\n"<<b;
delay(1200);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN :-";
cout<<"\n";
cin>>c>>d;
strupr(c);
strupr(d);
if((strcmp(a,c)==0)&&(strcmp(b,d)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER:- *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q4();
}
else
{
cout<<"\n ** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'\n'<<"\n** TRY AGAIN **";
getch();
}
}
 
 void memory::Q4()
{
char a1[20],b1[20],c1[20];
char a[]="BANGLADESH";
char b[]="MONGALIA";
char c[]="PAKISTAN";
cout<<a<<"\n"<<b<<"\n"<<c;
delay(2000);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN:-";
cout<<"\n";
cin>>a1>>b1>>c1;
strupr(a1);
strupr(b1);
strupr(c1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q5();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'\n'<<"** TRY AGAIN **";
getch();
}
}
 
void memory::Q5()
{
char a1[20],b1[20],c1[20];
char a[]="AUSTRALIA";
char b[]="KAZAKHSTAN";
char c[]="CHINA";
cout<<a<<"\n"<<b<<"\n"<<c;
delay(2000);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN :-";
cout<<"\n";
cin>>a1>>b1>>c1;
strupr(a1);
strupr(b1);
strupr(c1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* ";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.*  ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* ";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q6();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<"\n";
cout<<'\n'<<"** TRY AGAIN **";
getch();
}
}
 
void memory::Q6()
{
char a1[20],b1[20],c1[20];
char a[]="MAYANMAR";
char b[]="INDIA";
char c[]="RUSSIA";
cout<<a<<"\n"<<b<<"\n"<<c;
delay(2000);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN :-";
cout<<"\n";
cin>>a1>>b1>>c1;
strupr(a1);
strupr(b1);
strupr(c1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q7();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'\n';
cout<<'/n'<<" ** TRY AGAIN **";
getch();
}
}
 
void memory::Q7()
{
char a1[30],b1[30],c1[30],d1[30];
char a[]="BRAZIL";
char b[]="SOUTH AFRICA";
char c[]="USA";
char d[]="LIBYA";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d;
delay(2500);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN :-";
cout<<"\n";
cin>>a1;
gets(b1);
cin>>c1>>d1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q8();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"** TRY AGAIN **";
getch();
}
}
void memory ::Q8()
{
char a1[20],b1[20],c1[20],d1[20];
char a[]="KAZAKHISTAN";
char b[]="CONGO";
char c[]="NAMIBIA";
char d[]="ZIMBABWE";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d;
delay(2500);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cin>>a1>>b1>>c1>>d1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q9();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"** TRY AGAIN **";
getch();
}
}
 
void memory :: Q9()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20];
char a[]="IRAN";
char b[]="TURKEY";
char c[]="IRAQ";
char d[]="AFGANISTAN";
char e[]="ZAMBIA";
char f[]="ETHIOPIA";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f;
delay(3700);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)&&(strcmp(f,f1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n*.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.*";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q10();
}
else
{
cout<<"\n ** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"** TRY AGAIN **";
getch();
}
}
 
void memory:: Q10()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20];
char a[]="IRAQ";
char b[]="IRAN";
char c[]="CHINA";
char d[]="NEPAl";
char e[]="INDIA";
char f[]="RUSSIA";
char g[]="U.S.A";
char h[]="EGYPT";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n"<<h;
delay(4900);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN:-";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1>>g1>>h1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q11();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"**TRY AGAIN **";
getch();
}
}
 
void memory ::Q11()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],i1[20],j1[20];
char a[]="KAZAKHSTAN";
char b[]="MONGALIA";
char c[]="AUSTRALIA";
char d[]="BANGLADESH";
char e[]="PAKISTAN";
char f[]="SOUTH AFRICA";
char g[]="LIBYA";
char h[]="NAMIBIA";
char i[]="ZIMBABWE";
char j[]="BRAZIL";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n"<<h;
cout<<"\n"<<i<<"\n"<<j;
delay(6100);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1>>g1>>h1>>i1>>j1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q12();
}
else
{
cout<<"\n**  SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"** TRY AGAIN **";
}
}
void memory:: Q12()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],i1[20],j1[20];
char k1[20],l1[20];
char a[]="INDIA";
char b[]="NEPAL";
char c[]="PAKISTAN";
char d[]="NIGERIA";
char e[]="ARGENTINA";
char f[]="GREENLAND";
char g[]="UKRAINE";
char h[]="JAPAN";
char i[]="SRILANKA";
char j[]="KABUL";
char k[]="IRAN";
char l[]="TURKEY";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l;
delay(7300);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1>>g1>>h1>>i1>>j1>>k1>>l1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q13();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<" ** TRY AGAIN **";
getch();
}
}
void memory:: Q13()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],i1[20],
j1[20],k1[20],l1[20],m1[20],n1[20];
char a[]="UKRAINE";
char b[]="TURKEY";
char c[]="EGYPT";
char d[]="CHINA";
char e[]="MAYANMAR";
char f[]="IRAQ";
char g[]="KENYA";
char h[]="TANZANIA";
char i[]="ANGOLA";
char j[]="NAMIBIA";
char k[]="MADAGASCAR";
char l[]="SANTIAGO";
char m[]="MEXICO";
char n[]="IRAN";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l<<"\n"<<m<<"\n"<<n;
delay(8500);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1>>g1>>h1>>i1>>j1>>k1>>l1>>m1>>n1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
strupr(m1);
strupr(n1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0)
&&(strcmp(m,m1)==0)
&&(strcmp(n,n1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q14();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"** TRY AGAIN **";
getch();
}
}
void memory::Q14()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],
i1[20],j1[20],k1[20],l1[20],m1[20],n1[20],o1[20],p1[20];
char a[]="JAPAN";
char b[]="CHINA";
char c[]="MONGALIA";
char d[]="KAZAKHSTAN";
char e[]="MOSCOW";
char f[]="RUSSIA";
char g[]="CONGO";
char h[]="LIBYA";
char i[]="SAUDI ARABIA";
char j[]="KABUL";
char k[]="TURKEY";
char l[]="UKRAINE";
char m[]="ZAMBIA";
char n[]="BRAZIL";
char o[]="TANZANIA";
char p[]="SRILANKA";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l<<"\n"<<m<<"\n"<<n<<"\n";
cout<<o<<"\n"<<p;
delay(9700);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN:-";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1>>g1>>h1>>i1>>j1>>k1>>l1>>m1>>n1>>o1>>p1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
strupr(m1);
strupr(n1);
strupr(o1);
strupr(p1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0)
&&(strcmp(m,m1)==0)
&&(strcmp(n,n1)==0)
&&(strcmp(o,o1)==0)
&&(strcmp(p,p1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.Q15();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<" ** TRY AGAIN **";
getch();
}
}
void memory:: Q15()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],
i1[20],j1[20],k1[20],l1[20],m1[20],n1[20],o1[20],p1[20],q1[20],r1[20];
char a[]="INDIA";
char b[]="CHINA";
char c[]="BANGLADESH";
char d[]="PAKISTAN";
char e[]="JAPAN";
char f[]="KABUL";
char g[]="TANZANIA";
char h[]="IRAQ";
char i[]="IRAN";
char j[]="TURKEY";
char k[]="MONGALIA";
char l[]="RUSSIA";
char m[]="BRAZIL";
char n[]="KAZAKHSTAN";
char o[]="SRILANKA";
char p[]="MADAGASCAR";
char q[]="ZIMBABWE";
char r[]="ZAMBIA";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l<<"\n"<<m<<"\n"<<n<<"\n";
cout<<o<<"\n"<<p<<"\n"<<q<<"\n"<<r;
delay(10900);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN:-";
cout<<"\n";
cin>>a1>>b1>>c1>>d1>>e1>>f1>>g1>>h1>>i1>>j1>>k1>>l1>>m1>>n1>>o1>>p1>>q1>>r1;
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
strupr(m1);
strupr(n1);
strupr(o1);
strupr(p1);
strupr(q1);
strupr(r1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0)
&&(strcmp(m,m1)==0)
&&(strcmp(n,n1)==0)
&&(strcmp(o,o1)==0)
&&(strcmp(p,p1)==0)
&&(strcmp(q,q1)==0)
&&(strcmp(r,r1)==0))
{
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
Q15();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'/n'<<"** TRY AGAIN **";
getch();
}
}
void score()
{
clrscr();
f=f+100;
//cout<<"YOU HAVE CROSSED THE FIRST LEVEL";
cout<<"YOUR SCORE IS:-"<< f;
//getch();
}
 
void memory::L1()
{
  clrscr();
  char a[30]="GEORGE W BUSH";
  char b[30]="OSAMA BIN LADEN";
  char c[30],d[30];
  cout<<"\n"<<a<<"\n "<<b;
  delay(2500);
  clrscr();
  cout<<"\n** ENTER WHAT YOU HAVE SEEN :- ";
  cout<<"\n";
  gets(c);
  gets(d);
  strupr(c);
  strupr(d);
  if((strcmp(a,c)==0)&&(strcmp(b,d)==0))
    {
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
    score();
    cout<<"\n*..*..* PRESS ANY KEY TO CONTINUE *..*..* ";
    getch();
    clrscr();
    mm.L2();
    }
  else
   {
   cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER ** ";
   cout<<"\n**. TRY AGAIN **.  ";
   getch();
   }
}
 
 
 void memory::L2()
   {
   clrscr();
   char c[20],d[20];
   char a[20]="LATA MANGESHKAR ";
   char b[20]="ANUP JALOTA ";
   cout<<a<<"    "<<"\n"<<b;
   delay(2500);
   clrscr();
   cout<<"** ENTER WHAT YOU HAVE SEEN:-";
   cout<<"\n";
   cin>>c>>d;
   strupr(c);
   strupr(d);
   if((strcmp(a,c)==0)
   &&(strcmp(b,d)==0))
      {
cout< <"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.*CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER*.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
      score();
      cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
      getch();
      clrscr();
      mm.L3();
      }
   else
      {
      cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
      cout<<'\n'<<"** TRY AGAIN **";
      getch();
      }
}
 
void memory::L3()
{
char c[30],d[30];
char a[]="RABINDRANATH THAKUR";
char b[]="SUVASH CHANDRA BASU";
cout<<a<<"\n"<<b;
delay(2500);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(c);
gets(d);
strupr(c);
strupr(d);
if((strcmp(a,c)==0)
&&(strcmp(b,d)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER:- *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.L4();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'\n'<<"** TRY AGAIN **";
getch();
}
}
 
void memory::L4()
{
char a1[30],b1[30],c1[30];
char a[]="ATAL BIHARI BAJPAYE";
char b[]="A P J ABDUL KALAM";
char c[]="LAL KHRISNA ADVANI";
cout<<a<<"\n"<<b<<"\n"<<c;
delay(4000);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN:-";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
strupr(a1);
strupr(b1);
strupr(c1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.L5();
}
else
{
cout<<"\n** SORRY YOU HAVE GIVEN THE WRONG ANSWER **";
cout<<'\n'<<"** TRY AGAIN **";
getch();
}
}
void memory::L5()
{
char a1[30],b1[30],c1[30];
char a[]="MOTHER TERESA";
char b[]="TONY BLAIR";
char c[]="GEORGE W BUSH";
 
cout<<a<<"\n"<<b<<"\n"<<c;
delay(4000);
clrscr();
cout<<"** ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
strupr(a1);
strupr(b1);
strupr(c1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* ";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.*  ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* ";
getch();
score();
cout<<'\n'<<"*..*..* PRESS ANY KEY TO CONTINUE *..*..*";
getch();
clrscr();
mm.L6();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'\n'<<"TRY AGAIN";
getch();
}
}
void memory::L6()
{
char a1[30],b1[30],c1[30];
char a[]="JAVED AKTHAR";
char b[]="HARIBANSH RAI BACCHAN";
char c[]="AMITAB BACCHAN";
cout<<a<<"\n"<<b<<"\n"<<c;
delay(4000);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
strupr(a1);
strupr(b1);
strupr(c1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'\n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L7();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory::L7()
{
char a1[30],b1[30],c1[30],d1[30];
char a[]="SACHIN TENDULKAR";
char b[]="SAURAV GANGULY";
char c[]="SUNIL GAVASKAR";         //RAHUL DRAVID
char d[]="KAPIL DEV";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d;
delay(6000);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L8();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory ::L8()
{
char a1[30],b1[30],c1[30],d1[30];
char a[]="GEORGE WASINGTON";
char b[]="DONALD BRADMAN";
char c[]="SIR GARRY SOBARS";
char d[]="TONY BLAIR";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d;
delay(6000);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L9();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory :: L9()
{
char a1[30],b1[30],c1[30],d1[30],e1[30],f1[30];
char a[]="LALLU PRASHAD YADAV";
char b[]="BUDDHADEV BHATTACHERJEE";
char c[]="JYOTI BASU";
char d[]="CHANDRA BABU NAIDU";
char e[]="JAI LALITA";
char f[]="VENKIAYA NAIDU";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f;
delay(10000);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
strupr(a1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
if((strcmp(a,a1)==0)&&(strcmp(b,b1)==0)&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)&&(strcmp(f,f1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n*.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.*";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L10();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
 
void memory:: L10()
{
char a1[30],b1[30],c1[30],d1[30],e1[30],f1[30],g1[30],h1[30];
char a[]="JAWAHAR LAL NEHRU";
char b[]="INDIRA GANDHI";
char c[]="LAL BAHADUR SASTRI";
char d[]="LOKMANYA TILLAK";
char e[]="CHARAN SINGH";
char f[]="RABINDRANATH TAGORE";
char g[]="MOHANDAS KARAMCHAND GANDHI ";
char h[]="ISHWAR CHANDRA BIDYASAGAR";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n"<<h;
delay(12500);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
gets(g1);
gets(h1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L11();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory ::L11()
{
char a1[30],b1[30],c1[30],d1[30],e1[30],f1[30],g1[30],h1[30],i1[30],j1[30];
char a[]="PALE";
char b[]="DIAGO MARADHONA";
char c[]="DHANRAJ PILLAI";
char d[]="MICHALLE SUMACHAR";
char e[]="JAVAGAL SRINATH";
char f[]="JONTY RODHES";
char g[]="MUTTAIYA MURLIDAHARAN";
char h[]="ARJUNA RANATUNGA";
char i[]="BRIAN LARA";
char j[]="AJAY JADEJA";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j;
delay(15000);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
gets(g1);
gets(h1);
gets(i1);
gets(j1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L12();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
}
}
void memory:: L12()
{
char a1[30],b1[30],c1[30],d1[30],e1[30],f1[30],g1[30],h1[30],i1[30];
char j1[30],k1[30],l1[30];
char a[]="PARVESH MUSHARAF";
char b[]="PRINCE CHARLSE";
char c[]="LADY DIANA";
char d[]="KAIFY AZMY";
char e[]="SARDAR VALLAVE BHAI PATEL";
char f[]="SWAMI VIVEKANANDA";
char g[]="SONIA GANDHI";
char h[]="RABRI DEVI";
char i[]="MAYAWATI";
char j[]="UMA BHARATI";
char k[]="VAIRO SINGH SEKHAWAT";
char l[]="BALA SAHIB THAKRE";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l;
delay(17500);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
gets(g1);
gets(h1);
gets(i1);
gets(j1);
gets(k1);
gets(l1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L13();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory:: L13()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],i1[20],
j1[20],k1[20],l1[20],m1[20],n1[20];
char a[]="MOTHER TERISA";
char b[]="TONY BLAIR";
char c[]="GEORGE W BUSH";
char d[]="BILL CLINTON";
char e[]="MARGERATE THACHER";
char f[]="RAJIV GANDHI";
char g[]="CHARAN SINGH";
char h[]="ADOLF HITLER";
char i[]="SUBHASH CHANDRA BOSE";
char j[]="RABINDRANATH TAGORE";
char k[]="HO CHI MIN";
char l[]="ALBERT AINSTINE";
char m[]="FRIDDLE CASTRO";
char n[]="BENAZIR BHUTTO";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l<<"\n"<<m<<"\n"<<n;
delay(20000);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
gets(g1);
gets(h1);
gets(i1);
gets(j1);
gets(l1);
gets(m1);
gets(n1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
strupr(m1);
strupr(n1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0)
&&(strcmp(m,m1)==0)
&&(strcmp(n,n1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L14();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory::L14()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],
i1[20],j1[20],k1[20],l1[20],m1[20],n1[20],o1[20],p1[20];
char a[]="MURLY MANOHAR JOSHI";
char b[]="TASLIMA NASRINE";
char c[]="SALMAN RUSDHI";
char d[]="VIKRAM SETH";
char e[]="JHUMPA LAHIRI";
char f[]="AMARTAYA SEN";
char g[]="C.V.RAMAN";
char h[]="ARUNDHITY ROY";
char i[]="AJAY JADEJA";
char j[]="MUNSHI PREMCHAND";
char k[]="RAJA RAMMOHAN ROY";
char l[]="ISWAR CHANDRA BIDYASAGAR ";
char m[]="SATYAJIT RAY";
char n[]="ISAC NEUTON";
char o[]="HO CHI MIN";
char p[]="SWAMI VIVEKANANDA";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n";
cout<<g<<"\n"<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l<<"\n";
cout<<m<<"\n"<<n<<"\n"<<o<<"\n"<<p;
delay(22500);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
gets(g1);
gets(h1);
gets(i1);
gets(j1);
gets(k1);
gets(l1);
gets(m1);
gets(n1);
gets(o1);
gets(p1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
strupr(m1);
strupr(n1);
strupr(o1);
strupr(p1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0)
&&(strcmp(m,m1)==0)
&&(strcmp(n,n1)==0)
&&(strcmp(o,o1)==0)
&&(strcmp(p,p1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
mm.L15();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
getch();
}
}
void memory:: L15()
{
char a1[20],b1[20],c1[20],d1[20],e1[20],f1[20],g1[20],h1[20],
i1[20],j1[20],k1[20],l1[20],m1[20],n1[20],o1[20],p1[20],q1[20],r1[20];
char a[]="MOTHER TERRESA";
char b[]="TONY BLAIR";
char c[]="GEORGE W BUSH";
char d[]="BILL CLINTON";
char e[]="MARGERATE KHAACHAR";
char f[]="RAJIV GANDHI";
char g[]="CHARAN SINGH";
char h[]="ADOLF HITLER";
char i[]="SUBHASH CHANDRA BOSE";
char j[]="RABINDRANATH TAGORE";
char k[]="HO CHI MIN";
char l[]="ALBERT AINSTINE";
char m[]="FRIDDLE CASTRO";
char n[]="BENAZIR BHUTTO";
char o[]="GEORGE W BUSH";
char p[]="MUNSHI PREMCHAND";
char q[]="RAJA RAMMOHAN ROY";
char r[]="ISWAR CHANDRA BIDYASAGAR ";
cout<<a<<"\n"<<b<<"\n"<<c<<"\n"<<d<<"\n"<<e<<"\n"<<f<<"\n"<<g<<"\n";
cout<<h<<"\n"<<i<<"\n"<<j<<"\n"<<k<<"\n"<<l<<"\n"<<m;
cout<<"\n"<<n<<"\n"<<o<<"\n"<<p<<"\n"<<q<<"\n"<<r;
delay(27500);
clrscr();
cout<<"ENTER WHAT YOU HAVE SEEN";
cout<<"\n";
gets(a1);
gets(b1);
gets(c1);
gets(d1);
gets(e1);
gets(f1);
gets(g1);
gets(h1);
gets(i1);
gets(j1);
gets(k1);
gets(l1);
gets(m1);
gets(n1);
gets(o1);
gets(p1);
gets(q1);
gets(r1);
strupr(a1);
strupr(b1);
strupr(c1);
strupr(d1);
strupr(e1);
strupr(f1);
strupr(g1);
strupr(h1);
strupr(i1);
strupr(j1);
strupr(k1);
strupr(l1);
strupr(m1);
strupr(n1);
strupr(o1);
strupr(p1);
strupr(q1);
strupr(r1);
if((strcmp(a,a1)==0)
&&(strcmp(b,b1)==0)
&&(strcmp(c,c1)==0)
&&(strcmp(d,d1)==0)
&&(strcmp(e,e1)==0)
&&(strcmp(f,f1)==0)
&&(strcmp(g,g1)==0)
&&(strcmp(h,h1)==0)
&&(strcmp(i,i1)==0)
&&(strcmp(j,j1)==0)
&&(strcmp(k,k1)==0)
&&(strcmp(l,l1)==0)
&&(strcmp(m,m1)==0)
&&(strcmp(n,n1)==0)
&&(strcmp(o,o1)==0)
&&(strcmp(p,p1)==0)
&&(strcmp(q,q1)==0)
&&(strcmp(r,r1)==0))
{
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
cout<<"\n *.*.* CONGRATULATIONS YOU HAVE GIVEN THE CORRECT ANSWER *.*.* ";
cout<<"\n*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*";
getch();
score();
cout<<'/n'<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
L15();
}
else
{
cout<<"\nSORRY YOU HAVE GIVEN THE WRONG ANSWER";
cout<<'/n'<<"TRY AGAIN";
}
getch();
}

  1. No comments yet.
  1. No trackbacks yet.