Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //REVERSE WORLD LAB..
  2. #include <iostream>
  3. #include <ctime>
  4.  
  5.  
  6. int main() {
  7.  
  8.  
  9. srand(time(0));
  10.  
  11.  
  12.  
  13.  
  14. std::string s("HellothisisReverseWorldLab!"); //variable content
  15.  
  16.  
  17. for (char & c : s)
  18. {
  19. // YOU CAN CHANGE THE CONST CHAR TO ANYTHING STRING CHAR ETC..
  20. std::cout << "const char " << "*" << " SMF" << std::rand() << " = " << "\"" << c << "\"" << ";" << "\n";
  21. //YOU CAN CHANGE THE START LETTER AS YOU WISH.
  22.  
  23. c = '*';
  24. }
  25. std::cin.get();
  26. getchar();
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement