Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string input;
  9.     getline(cin, input);
  10.  
  11.     input[0] = toupper(input[0]);
  12.  
  13.     for (int i = 0; i < input.size(); i++)
  14.     {
  15.         if (i == ' ' || i == ',' || i == '-')
  16.         {
  17.             input[i + 1] = toupper(input[i + 1]);
  18.         }
  19.     }
  20.  
  21.     cout << input << endl;
  22.  
  23.     return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top