(no title)
d99kris | 1 year ago
#if 0
TMP=$(mktemp -d);
c++ -std=c++11 -o ${TMP}/a.out ${0} && ${TMP}/a.out ${@:1}; RV=${?};
rm -rf ${TMP};
exit ${RV};
#endif
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
(the trailing semi-colons in the script part is to make my editor indent the C++ code properly)
stefanos82|1 year ago
I was having fun with old Golang C code before they started bootstrapping in Go and have found they were using interpunct to separate function names, so I decided to play around with shellscript-like C code to goof around:
hawski|1 year ago
seeknotfind|1 year ago
ktm5j|1 year ago