Codigo en C++ para simular un efecto matrix en pantalla completa, no tiene mucha utilidad pero me gusta xD
using namespace std;
int main(int argc, char *argv[])
{
keybd_event(VK_MENU, 0×38, 0, 0);
keybd_event(VK_RETURN, 0×1c, 0, 0);
keybd_event(VK_RETURN, 0X1c, KEYEVENTF_KEYUP, 0);
keybd_event(VK_MENU, 0×38, KEYEVENTF_KEYUP, 0);
int binary, count;
HWND CurrentWin;
CurrentWin = GetForegroundWindow();
HANDLE consol;
consol = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consol,FOREGROUND_GREEN);
SetConsoleTitle("Matrix");
while(1)
{
binary = rand();
cout << binary;
SetForegroundWindow(CurrentWin);
count = rand()%200;
if(count<51)
{
cout << " ";
}
}
return 0;
}
Comentarios
No hay comentarios para “Efecto Matrix C++”
Deja un comentario