Skip to content

Instantly share code, notes, and snippets.

@Grumblesaur
Last active November 1, 2015 00:27
Show Gist options
  • Save Grumblesaur/4971510f71cb22a0183b to your computer and use it in GitHub Desktop.
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.
#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