online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
printf 'A\nFOX\nIS\nJUMPING\n' > HELLO.DAT printf 'A CAT\nRUNNING FOX\nIS GOD\nAND JUMPING JACK\n' > WORLD.DAT echo '---- $i in a ----' awk 'NR==FNR {a[$0]} NR!=FNR { for (i=1;i<=NF;++i) { if ($i in a) $i="" } $0=$0; $1=$1; print }' HELLO.DAT WORLD.DAT echo '---- gsub ----' awk 'NR==FNR {a[$0]} NR!=FNR { for (k in a) { gsub(k, "") } $0=$0; $1=$1; print } ' HELLO.DAT WORLD.DAT echo '---- $i in a, shuffled input ----' printf 'JUMPING\nA\nFOX\nIS\n' > HELLO.DAT awk 'NR==FNR {a[$0]} NR!=FNR { for (i=1;i<=NF;++i) { if ($i in a) $i="" } $0=$0; $1=$1; print }' <(shuf HELLO.DAT) WORLD.DAT
JUMPING A FOX IS
A CAT RUNNING FOX IS GOD AND JUMPING JACK

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue