08 2020 档案
摘要:C 语言中assert.h头文件唯一的目的就是提供了assert宏的定义,这个被称为断言,断言的效果是,如果断言的内容为真,断言就没有任何意义,如果断言为假,程序将执行异常终止。 测试代码: #include <stdio.h> #include <assert.h> int main(int ar
阅读全文
摘要:#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
阅读全文

浙公网安备 33010602011771号