#include <stdio.h>
/* replace tabs and backspaces with visible characters */
main()
{
int c;
while ((c = getchar()) != EOF) {
if (c == '\t')
printf("\\t");
if (c == '\b')
printf("\\b");
if (c == '\\')
printf("\\\\");
if (c != '\b')
if (c != '\t')
if (c != '\\')
putchar(c);
}
}
为什么按退格键时看不到 \b 退格签名?