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;
    }
}