Skip to content

Instantly share code, notes, and snippets.

@edussx
Last active December 13, 2015 20:29
Show Gist options
  • Save edussx/4970604 to your computer and use it in GitHub Desktop.
Save edussx/4970604 to your computer and use it in GitHub Desktop.
CareerCup 1.4
//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