摘要: C-string(char* const char*) basic_string<>特化版本:string charwstring wchar_tu16string char16_tu32string char32_t Setlocale是一个计算机函数,功能是用来配置地域的信息,设置当前程序使用的 阅读全文
posted @ 2018-07-31 00:37 xslwm 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 并发 头文件<future> <thread> 高级接口 async()、future<> future<int> result1; //int为func1返回值result1 = async(func1); //启动func1,但有可能被推迟,直到调用get或wait 或future<int> r 阅读全文
posted @ 2018-07-31 00:34 xslwm 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 引擎 engine e;engine e(seed);engine e(e2); copy构造e.seed(); 将引擎设为初始状态e.seed(seed); 将引擎设为根据seed形成的状态e(); 返回下一个随机值,并前进其状态e.discard(n); 前进接下来的n个状态,很像n此调用e() 阅读全文
posted @ 2018-07-31 00:32 xslwm 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Lambda 表达式 auto f1 = [](int x, int y) { return x + y; };cout << f1(2, 3) << endl; int n = [] (int x, int y) { return x + y; }(5, 4); Lambda 的类型是个不具名fu 阅读全文
posted @ 2018-07-31 00:29 xslwm 阅读(462) 评论(0) 推荐(0) 编辑
摘要: C++ 是世界上最常用的编程语言之一。编写良好的 C++ 程序是快速、高效的。 该语言比其他语言更加灵活,因为你可以使用它来创建各种应用,包括有趣刺激的游戏、高性能科学软件、设备驱动程序、嵌入式程序和 Windows 客户端应用。 在过去的 20 多年中,C++ 已被用于解决许多这样的以及各种其他问 阅读全文
posted @ 2018-07-31 00:26 xslwm 阅读(1572) 评论(0) 推荐(0) 编辑
摘要: 首先删除注册表HKEY_CURRENT_USER\Software\应用程序向导生成的本地应用程序之下你这铬软件的配置 CMFCToolBar m_myToolBar; CMFCToolBarImages m_mfcToolbarImage; //设置一个ID,不然添加不到菜单的视图工具栏集合 m_ 阅读全文
posted @ 2018-07-31 00:23 xslwm 阅读(582) 评论(0) 推荐(0) 编辑
摘要: //-------------------------------------------------------------------------------------- // File: MyWnd.cpp // // This application demonstrates creating a window // // Copyright (c) lwm //-----------... 阅读全文
posted @ 2018-07-31 00:16 xslwm 阅读(243) 评论(0) 推荐(0) 编辑