3 ms·
"fiddle"? I expected it to run the code. But for running simple C/C++ code I made me these anyway: https://gist.github.com/panzi/7010082 https://gist.github.co
by panzi 13y ago
"fiddle"? I expected it to run the code. But for running simple C/C++ code I made me these anyway:
https://gist.github.com/panzi/7010082 https://gist.github.com/panzi/7010082
https://gist.github.com/panzi/7010082 https://gist.github.com/panzi/7010082
C example (-i for include, -p for printf, standard flags: -I, -L, -l, -W, -O, -D, -S, -E):
$ cexpr -imath.h -iunistd.h -p '%f %d' 'pow(2,3)' 'getuid()'
8.000000 1000
C++ example (-i for include, standard flags: -I, -L, -l, -W, -O, -D, -S, -E):
$ cppexpr -ilimits 'std::numeric_limits<long>::max()' '"hello world"'
9223372036854775807 hello world