摘要:
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 >= 阅读全文
摘要:
class CConfig { HKEY _hKey; public: ~CConfig() { if (_hKey) { RegCloseKey(_hKey); } } CConfig() : _hKey(0) { } LSTATUS Save( PCWSTR lpValueName, DWORD 阅读全文
摘要:
main: #include <stdio.h> #include "common.h" #include "promise.h" #include <chrono> // std::chrono::seconds #include <thread> // std::this_thread::sle 阅读全文
![](/skins/gray/images/separator.gif)