📄 l5.1g
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -