Last active
December 13, 2015 20:29
-
-
Save edussx/4970604 to your computer and use it in GitHub Desktop.
CareerCup 1.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CareerCup 1.4 | |
//by edussx | |
#include <string> | |
using std::string; | |
string spaceReplacer(const string s) | |
{ | |
string new_string; | |
for (int i = 0; i < s.size(); i++) | |
{ | |
if (s[i] != ' ') | |
new_string += s[i]; | |
else | |
new_string += "%20"; | |
} | |
return new_string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment