08 2020 档案

摘要:C 语言中assert.h头文件唯一的目的就是提供了assert宏的定义,这个被称为断言,断言的效果是,如果断言的内容为真,断言就没有任何意义,如果断言为假,程序将执行异常终止。 测试代码: #include <stdio.h> #include <assert.h> int main(int ar 阅读全文
posted @ 2020-08-28 23:32 castor_xu 阅读(217) 评论(0) 推荐(0)
摘要:#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <pthread.h> #include <sys/stat.h> #include <time.h> void PTS(ti 阅读全文
posted @ 2020-08-13 22:56 castor_xu 阅读(129) 评论(0) 推荐(0)