Dev - C++ - El Efecto de Matrix

 
Vista:

El Efecto de Matrix

Publicado por Yackniel (1 intervención) el 31/05/2013 00:44:37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <windows.h>
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
using namespace std;
int main(int argc, char *argv[])
{
int a;
string array [45] = {"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 A");
while(1)
{
Sleep(35);
for(int i=0; i<27; i++)
{
a = rand()%45;
cout << " " << array[a];
cout << " ";
}
cout << endl;
}
getch();
return 0;
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

El Efecto de Matrix

Publicado por LOL (1 intervención) el 24/05/2015 02:03:45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mejor este xD
#include <iostream>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
int main(){
     char c=rand()%200;
 
     while(true){
     textcolor(7);
cout<<c;
textcolor(2);
cout<<c;
textcolor(10);
 
cout<<c;
}
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar