- 博客(3)
- 收藏
- 关注
原创 2021-11-05
#include <stdio.h> /* gets */#include <stdlib.h> /* atoi, malloc */#include <string.h> /* strcpy */#include "uthash.h"struct my_struct{ int id; /* key */ char name[10]; UT_hash_handle hh; /* makes this structure hashabl
2021-11-05 00:03:56
81
原创 #define中使用的参数#、##、__VA_ARGS__和##__VA_ARGS__
#在预编译时期将宏参数转换为字符串#define PRINT_MACRO_HELPER(x) #x#define PRINT_MACRO(x) PRINT_MACRO_HELPER(x)#define PRINT_ANOTHER_MACRO(x) #x"="PRINT_MACRO_HELPER(x)char *str=PRINT_MACRO_HELPER(1235982536);char *str2=PRINT_MACRO(i);char *str3=PRINT_ANOTHER_MACRO(i)
2021-09-03 16:19:05
954
原创 vscode终端显示中文字符乱码解决
vscode默认字符集使用的是UTF-8,但是终端控制台默认用的是cmd.exe,cmd默认字符集是GBK,只需要把cmd默认字符集改成UTF-8(但每次打开的新终端会重置)或者将NextCode改为GBK即可。在设置项搜索栏中输入utf,将Encoding项改为Simplified Chinese(GBK)。...
2021-08-25 12:03:22
1552
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人