Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- void ReplaceComma(std::string&);
- int main()
- {
- std::string s;
- std::cin >> s;
- ReplaceComma(s);
- std::cout << s << std::endl;
- return 0;
- }
- void ReplaceComma(std::string& s)
- {
- for (char& ch : s)
- if (ch == ',')
- ch = ' ';
- }
Advertisement
Add Comment
Please, Sign In to add comment