Simple Matrix Screen

All tutorials created in C++ to be posted in here.
2 posts Page 1 of 1
Contributors
User avatar
NecroPhis
VIP - Donator
VIP - Donator
Posts: 345
Joined: Sun Aug 08, 2010 1:14 pm

Simple Matrix Screen
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
Image
User avatar
benji_19994
VIP - Donator
VIP - Donator
Posts: 156
Joined: Mon Apr 16, 2012 3:13 pm

Re: Simple Matrix Screen
benji_19994
Nice :P
2 posts Page 1 of 1
Return to “C++ Tutorials”