Skip to content

Instantly share code, notes, and snippets.

@yvan-sraka
Last active October 21, 2016 10:03
Show Gist options
  • Save yvan-sraka/a3fd9602cc3cc16a4cd67cf297bebdd3 to your computer and use it in GitHub Desktop.
Save yvan-sraka/a3fd9602cc3cc16a4cd67cf297bebdd3 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
int main(void) {
std::string test = "j'adore les cookies au chocolat";
for (int i = 0; i < test.size(); ++i) {
test[i] = test[i] - 10;
}
std::cout << test << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment