Page 1 of 1

Simple Matrix Screen

Posted: Sun Aug 08, 2010 3:02 pm
by NecroPhis
Code: Select all
#include <windows.h> 
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

using namespace std;

int main(int argc, char *argv[])
{
    int a;
    string array [42] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9", " ", " ","?","!","#","*"};
    system("TITLE The Matrix");
    system("color 0A");
    while(1)
    {
   Sleep(45);  
    for(int i=0; i<27; i++)
             {
             a = rand()%42;
             cout << " " << array[a];
             cout << " ";
             }
             cout << endl;
    }
    getch();
    return 0;
}  

Screen Shot:

Image

Re: Simple Matrix Screen

Posted: Tue Sep 18, 2012 8:11 am
by benji_19994
Nice :P