Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Bibliotecas
- #include <time.h>
- #include <string>
- #include <iostream>
- #include <locale.h>
- #include <windows.h>
- using namespace std;
- /// Programa
- int main ( int argc , char *argv[] )
- {
- // Variáveis
- int r;
- // Tamanho: 60
- char a[] = { 'a', 'b','c','d','e','f','g','h','i','j','k','l',
- 'm','n','o','p','q','r','s','t','u','v','x','z',
- '1','2','3','4','5','6','7','8','9','0','!','@',
- '#','$','%','¨','&','*','(',')','-','_','+','=',
- '§','/','£','¢','¬','?','\\','[',']','^', '`','´'
- };
- // Sistemas
- setlocale(LC_ALL, "");
- srand( (unsigned) (time(NULL) ) );
- system("cls & color A");
- // Apresentação
- cout << " ========================== " << endl;
- system("echo - Usuario: %username%");
- system("echo - Computador: %computername%");
- system("echo - Hora: %time:~0,-3%");
- system("echo - Data: %date:/=-%");
- cout << " ========================== \n" << endl;
- for ( ; ; )
- {
- r = ( rand() % sizeof(a) );
- cout << " 1 " << a[r];
- cout << " 0 " << a[r];
- cout << " 1 " << a[r];
- cout << " 0 " << a[r];
- Sleep(3);
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement