07 2018 档案

摘要:``` 项目->属性->C/C++->命令行 添加如下内容: /d1 reportAllClassLayout [XXX] XXX 可选,代表源文件名,例如 main.cpp 或 /d1 reportSingleClassLayoutXXX XXX 代表类名 或者使用宏 offsetof 自己手动打印 ``` ``` /d1 reportAllClassLayout main.cpp ... 阅读全文
posted @ 2018-07-25 11:00 學海無涯 阅读(601) 评论(0) 推荐(0)
摘要:```c bool is_top_level_window(HWND hwnd) { if (!IsWindow(hwnd)) return false; DWORD dw_style = GetWindowLongPtr(hwnd, GWL_STYLE); DWORD dw_exstyle = GetWindowLongPtr(hwnd, GWL_EXSTYLE); DWORD in... 阅读全文
posted @ 2018-07-25 10:27 學海無涯 阅读(904) 评论(0) 推荐(0)
摘要:``` define verification(lhs,rhs,str) do { \ if (lhs == rhs) { \ std::cout 阅读全文
posted @ 2018-07-19 17:32 學海無涯 阅读(286) 评论(0) 推荐(0)
摘要:``` namespace MathConstants { const double E = 2.71828182845904523536; // e const double LOG2E = 1.44269504088896340736; // log2(e) const double LOG10E = 0.434294481903251827651; // log10(e) c... 阅读全文
posted @ 2018-07-17 16:55 學海無涯 阅读(159) 评论(0) 推荐(0)
摘要:``` std::string path = "C:\\VulkanSDK";//需要转义 std::string path = R"(C:\VulkanSDK)";//不需要转义 ``` 阅读全文
posted @ 2018-07-17 10:21 學海無涯 阅读(1155) 评论(0) 推荐(0)
摘要:``` template std::string createTable(T tableName,Args&&... args) { std::string sql = "CREATE TABLE IF NOT EXISTS"; sql += " "; sql += tableName; sql + 阅读全文
posted @ 2018-07-04 11:07 學海無涯 阅读(864) 评论(0) 推荐(0)