摘要: Linux文件系统各个目录记录: / 根目录,文件系统最顶层 /bin 可执行文件和可执行文件的符号链接,常用命令都在这个目录 /boot 存放启动Linux操作系统的所有文件 /dev 存放连接到计算机上的设备对应文件 /etc 存放与特定主机相关的文件和目录,包含了系统配置文件,这个目录没有二进 阅读全文
posted @ 2024-06-04 23:59 万舜 阅读(26) 评论(0) 推荐(0)
摘要: 关于Linux下的读写执行权限以及对应编码: 0 no_excute no_write no_read --x 1 excute -w- 2 write -wx 3 write_excute r-- 4 read r-x 5 read_excute rw- 6 read_write rwx 7 re 阅读全文
posted @ 2024-06-04 22:33 万舜 阅读(9) 评论(0) 推荐(0)
摘要: typedef关键字,为类型取一个别名,例如: typedef int luo; int b = 20; <=> luo b = 20; typedef struct Student{ int age; int score; } Stu; struct Student s1; <=> Stu s1; 阅读全文
posted @ 2024-06-04 22:15 万舜 阅读(36) 评论(0) 推荐(0)
摘要: 常量指针:指向常量的指针,指针指向的值(解引用的值)不可变,指向(指针存储的地址)可变 int a = 10; int b = 10; const int * p = &a; // 或者 int const *p = &a; p = &b; // *p = 20; 错误 指针常量:指针类型的常量,指 阅读全文
posted @ 2024-06-04 19:49 万舜 阅读(21) 评论(0) 推荐(0)