Created
May 16, 2015 06:17
-
-
Save lackofdream/8d3452eab5375875c276 to your computer and use it in GitHub Desktop.
!@# Generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <cstring> | |
| using namespace std; | |
| char s[]="!@#$%^&*!@#$%^&*!@#$%^&*!@#$%^&*!@#$%^&*"; | |
| int main() | |
| { | |
| srand(time(NULL)); | |
| int len = strlen(s); | |
| int a; | |
| cin >> a; | |
| for (int i=0;i<a;i++) | |
| { | |
| cout << s[rand()%len]; | |
| rand(); | |
| rand(); | |
| } | |
| cout << endl; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment