摘要:
#include #define DBS '\\'void main(){ int c; while((c=getchar())!=EOF) { if(c=='\t') { putchar(DBS); putchar('t'); } else if(c==' ') { putchar(DBS); putchar('b'); } else if(c=='\\') { ... 阅读全文
摘要:
#include void main(){ int c,c_BCN; while((c=getchar())!=EOF) { if(c!=' ') c_BCN=0; if(c==' ') ++c_BCN; if(c_BCN<=1) putchar(c); } printf("\n%d\n",c);}df ff f f fff d fg fggdf ff f f fff d fg fgg 阅读全文
摘要:
#include void main(){ int c; c=getchar(); while(c!=EOF) { putchar(c); c=getchar(); }}getchar() returns a distinctive value when there is no more input, a value that cannot be confused with any real character. This value is calledEOF, for ``end of file''.Q: The ty... 阅读全文
摘要:
$ ls -al drwxr-xr-x. 6 wjshan0808 wjshan0808 4096 Sep 11 21:51 .cache$ ls -liinode值 文件类型权限 连接计数 文件拥有者 文件群组 大小 修改日期 名称12976146 drwxr-xr-x. 2 wjshan0808 wjshan0808 4096 Sep 16 12:37 Desktop注:连接计数 - 2 = 本目录直接包含的子目录和文件的总和 阅读全文
摘要:
第一个字符段:文件类型。第二个组字符段又分为三段(每三个字符为一段不足用‘-’):文件属性。1. drwxrwxrwx 2. -rwxr-xr-x第一字符段: 第二字符组段依次为:- :普通文件 1.文件拥有者 2.文件所属的组群成员 3.其他用户d :目录 r:可读 w:可写 x:可执行l :链接b:块设备文件c:字符设备文件、p:管道文件s:套接文件 阅读全文