echo -e "#include <stdio.h>\nint main()\n{\n printf(\"hello world\\\n\");\n return 0;\n}" > h.c; gcc h.c; ./a.out
h.c里的内容
#include <stdio.h> int main() { printf("hello world\n"); return 0; }
终端输出内容
hello world
echo -e "#include <stdio.h>\nint main()\n{\n printf(\"hello world\\\n\");\n return 0;\n}" > h.c; gcc h.c; ./a.out
h.c里的内容
#include <stdio.h> int main() { printf("hello world\n"); return 0; }
终端输出内容
hello world
相关文章: