Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <cstring>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. string sperm;
  9. cout << "Big pussy lips says: " << endl;
  10. // Yo this code is so good idgaf what I'mma write this shit gucci
  11. //lmao suck mah dick bitch
  12. //i aint even a computer science major yo
  13. getline(cin, sperm);
  14.  
  15. int j = sperm.find(' ', 0);
  16. for(int i = 0; i < sperm.length(); i++)
  17. {
  18. if(sperm[j+1] == ' ')
  19. {
  20. sperm.erase(j, 1);
  21. }
  22. j=sperm.find(' ', i);
  23. }
  24.  
  25. for(int i = 0; i < sperm.length(); i++)
  26. {
  27. if(i == 0)
  28. {
  29. sperm[0] = toupper(sperm.at(i));
  30. }
  31. }
  32.  
  33. cout << sperm;
  34.  
  35. return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement