习题1-10
将输入中的符号替换为可见并输出
include <stdio.h>
/* Run this program on itself (this file) and the following string " "
- will be only one blank long.
*/
main ()
{
int c;
while ((c = getchar()) != EOF) {
if (c == ' ')
printf("\t");
else if (c == '')
printf("\b");
else if (c == '\')
printf("\\");
else/*避免重复输出*/
putchar(c);
}
}