摘要: 引入的头文件io_utils/time_utils 文件字符个数 #include<stdio.h> #include<locale.h> #include<wchar.h> #include"../include/io_utils.h" #define ERROR_ILLEGAL_FILENAME 阅读全文
posted @ 2021-06-28 20:25 放飞梦想C 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 头文件 #pragma once #if defined(_WIN32) #include<sys/timeb.h> #if defined(__UNIX__)||defined(__APPLE__) #include<time.h> #endif typedef long long long_ti 阅读全文
posted @ 2021-06-28 20:23 放飞梦想C 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 线程安全问题 #include <stdio.h> #include <tinycthread.h> #include <io_utils.h> int count = 0; int Counter(void*arg) { for(int i = 0;i<100000;i++) { count++; 阅读全文
posted @ 2021-06-28 20:03 放飞梦想C 阅读(405) 评论(0) 推荐(0) 编辑