2023年9月21日
摘要: int NumberAt(long num, int unit) { while (unit-- > 0) num /= 10; return num % 10; } int NumberLength(long num) { int len = 1, sum = 10; while (num >= 阅读全文
posted @ 2023-09-21 14:35 laremehpe 阅读(199) 评论(0) 推荐(0) 编辑
摘要: class CConfig { HKEY _hKey; public: ~CConfig() { if (_hKey) { RegCloseKey(_hKey); } } CConfig() : _hKey(0) { } LSTATUS Save( PCWSTR lpValueName, DWORD 阅读全文
posted @ 2023-09-21 11:24 laremehpe 阅读(87) 评论(0) 推荐(0) 编辑
摘要: main: #include <stdio.h> #include "common.h" #include "promise.h" #include <chrono> // std::chrono::seconds #include <thread> // std::this_thread::sle 阅读全文
posted @ 2023-09-21 09:34 laremehpe 阅读(37) 评论(0) 推荐(0) 编辑