Skip to content

Instantly share code, notes, and snippets.

@bobby5892
Created May 2, 2018 17:04
Show Gist options
  • Save bobby5892/63d3a1f3661c76d2ee500c9f07f21cb7 to your computer and use it in GitHub Desktop.
Save bobby5892/63d3a1f3661c76d2ee500c9f07f21cb7 to your computer and use it in GitHub Desktop.
might work
std::string recPrint(std::string stringy,int index=-1){
if(index < 0){
index = stringy.length();
}
if(index > 0){
return recPrint(stringy.substr(index--,1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment