Advertisement
macrofish

sdasds

May 29th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1.     int length = rand() % 4 + 4;
  2.    
  3.     char * pole;
  4.     pole = new char [length];
  5.     for(int i = 0;i<length;i++)
  6.     {
  7.         int ascii = rand() % 25 + 1 + 96;
  8.         pole[i]=ascii;
  9.     }
  10.     string tmp(pole);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement