Last active
November 1, 2015 00:27
-
-
Save Grumblesaur/4971510f71cb22a0183b to your computer and use it in GitHub Desktop.
Write a function that, for a given integer, will output a string of the form (n)spooky(n+2)me.
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
#include<sstream> | |
#include<string> | |
[](int x){std::stringstream q;q<<x<<"spooky"<<x+2<<"me";return q.str();} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment