模拟黑客入侵,恶搞小伙伴的利器
1 #include <bits/stdc++.h> 2 #include <windows.h> 3 using namespace std; 4 int main(){ 5 srand((int)time(0)); 6 system("color 0A"); 7 while(1){ 8 9 int a=rand(); 10 int b=rand()%3; 11 for(int i=1;i<=b;i++)cout<<" "; 12 // if(a%10==0)cout<<1024<<" "; 13 /*else */if(a%10240==0){ 14 int c=rand()%11; 15 Sleep(c*10); 16 cout<</*"hello world!"*/a%2<<" "; 17 int d=rand()%6; 18 19 Sleep(d*10); 20 } 21 else if(a%10!=0&&a%1024!=0)cout<<a%2<<" "; 22 } 23 24 return 0; 25 }