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

 

相关文章:

  • 2021-06-07
  • 2021-07-15
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案