l5.1g
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1G 代码 · 共 39 行
1G
39 行
#printWrite a program to copy its input to its output,replacing each string of one or more blanks bya single blank.#once #create Ref This has lines with several blanks including some in funny places. #once #create Ref1 #once #create Answer This has lines with several blanks including some in funny places. #usera.out <Ref >testa.out <Ref1 >>test#cmp test Answer#succeedOne way: #include <stdio.h>main(){ int c; for (c = getchar(); c != EOF; ) { putchar(c); if (c == ' ') while ((c = getchar()) == ' ') ; else c = getchar(); }}#log#next9.1a 10
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?