Created
May 2, 2018 17:04
-
-
Save bobby5892/63d3a1f3661c76d2ee500c9f07f21cb7 to your computer and use it in GitHub Desktop.
might work
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
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