Wednesday, 16 September 2015

Fake Home Work(do not try this at school)



















#include<iostream>
#include<windows.h>
#include<string.h>
using namespace std;
int main()
{   cout<<"calmchicken";
    char ge[500];
    cout<<"\n\t\t\tEnter your lines(max limit 500):";
    cin.getline(ge,500);
    int x=strlen(ge);
    int xtime=0;
    while(xtime<100)

     {

        cout<<"\n"<<++xtime<<",";
        cout.write(ge,x);
        Sleep(150);
     }
}

C++ Matrix














#include<iostream>
#include<windows.h>
#include<stdlib.h>
int main()
{   int as;
    system("color 02");
    while(1)
    std::cout<<(as=rand());

}



PRINT ASCII AND RESPT. CHARCTER




#include <iostream>
#include<conio.h>
#include<windows.h>
using namespace std;
int main ()
{
    int b=0;
    while(b<1000)
    {
        char am=b++;
        cout<<b<<":\t"<<am<<"\n";
        Sleep(500);
        int b=++b;
    }
}

Friday, 21 August 2015

Shutdown Manager!!



#include<iostream>
#include<conio.h>
#include<windows.h>
#include<iomanip>
using namespace std;
int main()
{
  char cmn,c;
  system("color e");
  cout<<setw(15)<<"l- Log off.\ns- Shutdown the computer.\nr-Full shutdown and restart the computer.\ng- Full shutdown and restart the computer.After the system is rebooted, restart any registered applications.\np-Turn off the local computer with no time-out or warning.\nh- Hibernate the local computer.-:::";
  cin>>cmn;
  switch(cmn)
  {
      case 'l':Sleep(2000);system("shutdown/l");
      break;
      case 's':Sleep(2000);system("shutdown/s");
      cout<<"\na-Abort a system shutdown.-:::";
      cin>>c;

      {
          case 'a':Sleep(2000);system("shutdown/a");cout<<"\nShutdown Canceled";
          break;
      }
      break;
      case 'r':Sleep(2000);system("shutdown/r");
      break;
      case 'g':Sleep(2000);system("shutdown/g");
      break;
      case 'p':Sleep(2000);system("shutdown/p");
      break;
      case 'h':Sleep(2000);system("shutdown/h");
      break;
      default:Sleep(2000);system("color c");cout<<"\n\t\t wrong entry";break;

  }
  getch();
}

Infinite Loop



#include<iostream>
using namespace std;
int main()
{
    while(1)
    cout<<"Da@N%$!*GEr ";

    }

Shutdown Prank




#include<iostream>
#include<windows.h>
using namespace std;
 main()
{
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    system("color b");
    cout<<"\n\t\t\t\t\t   Press any key in 1 sec";
    Sleep(1500);
    system("cls");
    cout<<"#GE*RGE!#";
    int a,b=5456;
    system("color 9");
    system("shutdown /s" );
    Sleep(1500);
    cout<<"\n\n\n\n\n\t\t\t\t Enter the password to abort shutdown:";
    system("color e");
    cin>>a;
    system("cls");
    cout<<"#GE*RGE!#";

    if(a==b)
    {   system("color b");
        cout<<"\n\n\n\n\n\n\t\t\t\t  Correct entry! Shutdown aborting in t-6sec";
        Sleep(6000);
        system("cls");
        cout<<"#GE*RGE!#";
        system("shutdown /a");
        Sleep(2000);
        return 0;

    }

    else(a!=b);
    {   system("cls");
        cout<<"#GE*RGE!#";
        Sleep(1000);
        system("color c");
        system("cls");
        cout<<"#GE*RGE!#";
        cout<<"\n\n\t\t\t\t\t    WRONG KEY ENTRY";
        cout<<"\n\n\t\t\t              Hint:Convert 'TV' to HEX";
        Sleep(1500);
        system("cls");
        cout<<"#GE*RGE!#";
        cout<<"\n\n\n\n\t\t\t              Hint:Convert 'TV' to HEX";
        system("color e");
        Sleep(2500);
        system("color d");
        cout<<"\n\t\t\t Enter the password to try again(P.S this is the last chance):";
        cin>>a;

        if(a==b)
    {   system("color b");
        cout<<"\n\t\t\t\t\tCorrect entry! Shutdown aborting in t-3sec.";
        Sleep(3000);
        system("shutdown /a");
        Sleep(5000);
        system("color 02");
        return 0;
    }

    else if(a!=b)
    {
        system("cls");
        cout<<"#GE*RGE!#";
        Sleep(1000);
        system("color c");
        cout<<"\n\n\t\t\t\t\t    WRONG KEY ENTRY";
        Sleep(3000);
        system("color d");
        system("cls");
        cout<<"#GE*RGE!#";
        cout<<"\n\n\n\t\t\t\t\tBYE BYE";

}
}
}