Skip to content

Instantly share code, notes, and snippets.

@rhysd
Created May 3, 2012 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhysd/2587074 to your computer and use it in GitHub Desktop.
Save rhysd/2587074 to your computer and use it in GitHub Desktop.
Preprocess-time stdin
#include <iostream>
int main()
{
char str[] = ""
#include "/dev/tty"
"";
std::cout << str << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment