![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++学习
elioven
这个作者很懒,什么都没留下…
展开
-
STL库全排列算法next_permutation
1.next_permutation 函数原型 template bool next_permutation( BidirectionalIterator _First, BidirectionalIterator _Last ); template bool next_permutation( BidirectionalIt原创 2015-03-04 10:54:52 · 706 阅读 · 0 评论 -
Windows 编程基础知识
MSG Structure: typedef struct tagMSG { // msg HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt; } MSG;消息类参数说明: hwnd:窗口资源句柄 message:消息名称,采用宏定义的无符号整原创 2015-01-08 15:28:41 · 420 阅读 · 0 评论 -
map与set容器的使用
map、set容器的应用(文本中关键词的查询) 1.查询程序设计要求: 读入指定的文本文档,搜索文档中的关键字,显示出文档中关键字所在行号与对应行的内容。 2.数据容器及关系的选择: 行号采用set容器存储:确保输出时以升序形式输出,当一行中有多个关键词时,不重复输出。 每行包含单词分别与对应行号以map>容器关联: 设计的类TextQuery中包含两个原创 2015-01-07 13:26:44 · 425 阅读 · 0 评论 -
MFC右键弹出菜单的创建
方法一; OnContextMenu()函数: a.在资源菜单中添加自定义菜单功能,记录菜单的ID号,此处以IDR_MENU1为例: b.view类的OnContextMenu()函数添加对应的消息响应: CMenu menu; menu.LoadMenu(IDR_MENU1); //读取资源 menu.GetSubMenu(0)->TrackPopupMenu原创 2015-01-21 08:56:03 · 797 阅读 · 0 评论 -
C++ primer 单词转换(使用map对象)
map关联容器类型通常理解为关联数组,由键(类型)和值(类型)组成。方便记忆以书店图书为例:map bookstore;ISBN为键,对应图书sale_item为值,这使得我们能够通过键的顺序访问元素,而与元素在容器中的存储位置完全无关。 使用nap对象完成单词转换(C++ primer 第4版10.3.9),例:#include #include #include #include原创 2015-01-05 19:24:52 · 515 阅读 · 0 评论 -
new 和 placementnew用法
new 和 placementnew用法 1. placement new的含义 placement new 是重载operator new 的一个标准、全局的版本,它不能够被自定义的版本代替(不像普通版本的operator new 和 operator delete能够被替换)。 void *operator new( size_t, void *p ) throw()转载 2014-12-22 15:35:00 · 696 阅读 · 0 评论 -
FreeImage库在C++与C#中的简单使用
FreeImage库在C++与C#中的简单使用原创 2014-12-29 21:08:11 · 2809 阅读 · 0 评论