
Untitled
By: a guest on Jan 28th, 2012 | syntax:
None | size: 1.67 KB | hits: 15 | expires: Never
/* Wallpaper Matrix - Letras aleatórias aparecem na tela.
*
* by pH - iBlogeek.com
*
* 26 de Abril de 2009
*
* Todos os direitos reservados
*
*/
#include <iostream>
#include <time.h>
#include <cstdlib>
using namespace std;
int main()
{
int um;
int dois;
int tres;
int quatro;
int cinco;
int seis;
int sete;
int oito;
int nove;
int dez;
int onze;
int douze;
int treze;
int catorze;
int quinze;
int dezesseis;
int a;
int b;
int c;
int d;
char start;
char cDoagain ='s';
system("clear");
cout <<"Pressione S para iniciar o Wallpaper Matrix! "<< endl;
cin >> start;
if (start == 'S'||start == 's')
{
do
{
system("sleep 0,05"); // Setar o tempo! (1 = um segundo / 0,7 = Setenta milésimos / 0,07 = Sete milésimos)
um = (rand() % 1000) + 1;
dois = (rand() % 1000) + 1;
tres = (rand() % 1000) + 1;
quatro = (rand() % 1000) + 1;
cinco = (rand() % 1000) + 1;
seis = (rand() % 1000) + 1;
sete = (rand() % 1000) + 1;
oito = (rand() % 1000) + 1;
nove = (rand() % 1000) + 1;
dez = (rand() % 1000) + 1;
onze = (rand() % 1000) + 1;
douze = (rand() % 1000) + 1;
treze = (rand() % 1000) + 1;
catorze = (rand() % 1000) + 1;
quinze = (rand() % 1000) + 1;
dezesseis = (rand() % 1000) + 1;
a = (rand() % 1000) + 1;
b = (rand() % 1000) + 1;
c = (rand() % 1000) + 1;
d = (rand() % 1000) + 1;
cout << um <<" "<< dois <<" "<< tres <<" "<< quatro <<" "<< cinco <<" "<< seis <<" "<< sete <<" "<< oito <<" "<< nove <<" "<< dez <<" "<< onze <<" "<< douze <<" "<< treze <<" "<< catorze <<" "<< quinze <<" "<< dezesseis <<" "<< a <<" "<< b <<" "<< c <<" "<< d <<" "<< endl;
}while (cDoagain == 's');
}
}