Pages

comp game

#include<iostream.h>
#include<conio.h>
void main()
{
int s,a,t,o,x=2,c,r,i;
char ch;
s=t=0,r=22,c=2;
clrscr();
cout<<"                          This is a computer Game.

########################

There are 22 balls on  a table,you can take
either a
 ";
cout<<"maximum of 4 balls or a minimum of 1 at a time.If you take
";
cout<<" the last ball from the table you will WIN other wise Computer
..
";
cout<<"
Either You or Coputer can Take First ,Enter yr choice
I(you)/C(computer)
";
cin>>ch;
if (ch=='I'|| ch=='i')
{
i=1,o=1;
s:
for (;i<17;i++)
{
cout<<"

You:";
cin>>a;
   switch(a)
  {
    case 1:
    r=r-a;
    s=s+a;
    cout<<"Remaining ="<<r;
    break;

    case 2:
    s=s+a;
    r=r-a;
    cout<<"Remainig ="<<r;
    if(i==1)
     { cout<<"

VIJOY:"<<o;
      r=r-o;
      s=s+o;
      cout<<"
Remaining ="<<r;
      i=2; goto s;
     }
    break;

    case 3:
    s=s+a;
    r=r-a;
    cout<<"Remainig ="<<r;
    break;

    case 4:
    s=s+a;
    r=r-a;
    cout<<"Remaining ="<<r;
    if(i==2)
    { cout<<"

VIJOY:"<<o;
     r=r-o;
     s=s+o;
     cout<<"
Remaining ="<<r;
     i=3;goto s;}

     if(i==3)
     { cout<<"

VIJOY:"<<2;
       r=r-2;
       s=s+2;
       cout<<"
Remaining ="<<r;
       i=4;goto s;}
    break;
  default:
  cout<<"Wrong Withdrawl......
";
  cout<<"Exitting...";goto e;
   }

 j:
if(s<c)
 {
t=c-s;
  s=s+t;
  r=r-t;
  if(t==5)
   {cout<<"

Since I Have To WIN I Am Taking 5 Balls...";
    cout<<"
VIJOY:"<<t;
    cout<<"
Remainig ="<<r;
    cout<<"

Anyway Congrats To You
";
     goto e;}
  cout<<"

VIJOY:"<<t;
  cout<<"
Remainig ="<<r;

  if(r==0)
   {cout<<"

You Lost The Game........!!!!
Think again....
";
    goto e;}

  c=c+5;
  i=5;
 }
  else
 { c=c+5;goto j;}
}
}
else
{
cout<<"
Coputer:"<<x;
r=r-x;
cout<<"
Remainig ="<<r;
s=s+x;
i=5;
goto s;
}
e:
getch();
clrscr();
cout<<"
Hai
";
for(i=1;i<20;i++)
cout<<"a";
getch();
}

How Not To Get Hacked




Protect Urself !
Follow These Simple Guidelines n u are done



1. Stop using Internet Explorer and make the switch to Opera, it's more secure, plain and simple.

2. Get Spybot Search and Destroy or Spyware Doctor and immediately update it.

3. Get Adaware SE and immediately update it.
(Use both as a 1-2 punch on infected client computers and between the two there's not much they won't kill)

4. Update your anti virus

5. Boot into safe mode and run all three scans

6. While the scans are going check your registry (Click start --> Run and type regedit to get intot he registry) and look in HKEY_CurrentUser/software/microsoft/windows/currentversion/run & HKEY_Local_Machine/software/microsoft/windows/currentversion/run. Verify that all programs listed are legitimate and wanted.

7. If or when your antivirus scan comes across anything, search for that file name in your registry and delete it.

8. Use explorer to go to the windows/system32 folder and sort by date. If you haven't already done so, make sure you can see the entire file names. click Tools --> Folder Options and unclick the box labeled "Hide extensions for known file types" and under Hidden files and folders click "Show hidden files and folders." However, make sure you choose "Hide protected operating system files" so you don't accidentally remove anything that would cripple your computer.. You are looking for recent files with names ending with .exe and .dll that look suspicious. Major culprits will have gibberish names such as alkjdlkjfa.exe.

9. Once you can get clean scans in safe mode, reboot in normal mode and scan all over again. If you can't get a clean scan in regular mode then you have something more persistant that could take more research.

10. Make sure your firewall doesn't have strange exceptions.

11. If you suspect anything that is going wrong with your computer is the action of a stalker, on a more secure system change all your passwords.

12. If your system has been specifically targeted and hacked you can never be 100% sure that your system is no longer compromised so start with 11, make backups of personal files on the infected system and format and re-install Windows.

Good luck!