Friday 30 March 2012

The Matrix - C++

 By Mohammad Nashir

"#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <conio.h>
// By Mohammad Nashir Copyrighted
using namespace std;

int main(int argc, char *argv[] )
{
    int a;
    string array [42] = {"1","0","1","0","1","0","1","1","0","1","0","1","0","1","0","1","0","1","0","1","0","1","1","0","1","0","1","1","0","1","0","1","0","1"," "," "," ","?","!","#"};
    system("Mohammad Nashir Matrix Project by M Nashir");
    system("color 0B");
    while(1)
    {
             for(int i=0; i<22; i++)
             {
                     a=rand()%42;
                     cout<<" "<<array[a];
                     cout<<" ";
                    
                     }
                    
                     cout <<endl;
                     }
                     getch();
                     return(0);
                     }
"

No comments:

Post a Comment