Created
December 3, 2012 07:32
-
-
Save whyrusleeping/4193408 to your computer and use it in GitHub Desktop.
Implicit Compilation (aka, shell scripting fun)
This file contains 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
#if 0 | |
#!/bin/sh | |
g++ compins.cpp -o compins | |
./compins | |
exit | |
#endif | |
#include <iostream> | |
using std::cout; | |
int main() | |
{ | |
cout << "hello world\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment