回首2021,展望2022

回首2021,展望2022 2021年刚刚过去,2022年如期到来,在这辞旧迎新的日子里,又到了一年一度的总结时间了。虽然不是很有想写的冲动,

游戏中的经济学

游戏中的经济学 总结我玩过的游戏,我将游戏主要分为3种类型。 1. 单一无限资源 在dota中,所有的物品购买都需要金币,而金币的产生有两种主要的方式

Windows获取网络地址、子网掩码等

#include <winsock2.h> #include <iphlpapi.h> #include <stdio.h> #include <stdlib.h> #pragma comment(lib, "IPHLPAPI.lib") #define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x)) #define FREE(x) HeapFree(GetProcessHeap(), 0, (x)) /* Note: could also use malloc() and free() */ int __cdecl main() { /* Declare and initialize variables */ // It is possible for an adapter to have multiple // IPv4 addresses, gateways, and secondary WINS servers // assigned to the adapter. // // Note that this sample code