上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 头文件定义 1 #ifndef CHAPTER10_INCLUDE_TIME_UTILS_H_ 2 #define CHAPTER10_INCLUDE_TIME_UTILS_H_ 3 4 #if defined(_WIN32) 5 #include <sys/timeb.h> 6 #elif def 阅读全文
posted @ 2023-02-12 12:56 泥古拉斯赵四 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-12 12:41 泥古拉斯赵四 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 什么也不设置, 看一下代码运行结果。 1 #include <io_utils.h> 2 #include <string.h> 3 #include <stdlib.h> 4 #include <wchar.h> 5 #include <wctype.h> 6 #include <locale.h 阅读全文
posted @ 2023-02-12 12:31 泥古拉斯赵四 阅读(167) 评论(0) 推荐(0) 编辑
摘要: #include <io_utils.h> #include <string.h> #include <stdlib.h> int main() { // memchr() // strchr() // memcmp() // strcmp() //memset() char *mem = mall 阅读全文
posted @ 2023-02-12 11:52 泥古拉斯赵四 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1 #include <io_utils.h> 2 #include <string.h> 3 4 int main() { 5 char src[] = "HelloWorld"; 6 char dest[20] = "C said123456"; 7 // strcat(dest, src); 阅读全文
posted @ 2023-02-12 11:37 泥古拉斯赵四 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1 #include <io_utils.h> 2 #include <string.h> 3 #include <stdlib.h> 4 5 int main() { 6 char string[] = "C, 1972; C++, 1983; Java, 1995; Rust, 2010; Ko 阅读全文
posted @ 2023-02-11 21:46 泥古拉斯赵四 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1 #include <io_utils.h> 2 #include <string.h> 3 4 int main() { 5 char *string = "Hello World!"; 6 char *result = strchr(string, 'l'); 7 char *result_r 阅读全文
posted @ 2023-02-11 21:33 泥古拉斯赵四 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1 #include <io_utils.h> 2 #include <stdlib.h> 3 #include <errno.h> 4 #include <time.h> 5 #include <string.h> 6 7 void SwapString(char * *first, char * 阅读全文
posted @ 2023-02-11 21:25 泥古拉斯赵四 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1 #include <io_utils.h> 2 #include <stdlib.h> 3 #include <errno.h> 4 5 int main() { 6 // PRINT_INT(atoi("1234")); // 1234 7 // PRINT_INT(atoi("-1234") 阅读全文
posted @ 2023-02-11 21:04 泥古拉斯赵四 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1 #include <io_utils.h> 2 #include <stdlib.h> 3 4 typedef struct ListNode { 5 int value; 6 struct ListNode *next; 7 } ListNode; 8 9 ListNode *CreateNo 阅读全文
posted @ 2023-02-11 20:29 泥古拉斯赵四 阅读(13) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页