会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lodger47
上一页
1
···
25
26
27
28
29
30
31
32
33
···
36
下一页
2021年5月1日
qt (信号和槽)
摘要: connect (信号发送者,发送的信号,信号接收者,处理的槽函数); connect(btn,&QPushButton::clicked,this,&Widget::close);
阅读全文
posted @ 2021-05-01 16:23 lodger47
阅读(94)
评论(0)
推荐(0)
2021年4月29日
c++ (transform容器拷备)
摘要: transform容器拷备 transform容器拷备 class TransForm { public: int operator()(int val) { return val; } }; void test04() { vector<int> v; for (int i = 0; i < 10
阅读全文
posted @ 2021-04-29 13:27 lodger47
阅读(46)
评论(0)
推荐(0)
c++ (成员函数适配器)
摘要: 成员函数适配器 成员函数适配器 //成员函数适配器 class Person { public: Person(string name,int age):m_Name(name),m_Age(age){} string m_Name; int m_Age; void showPerson() { c
阅读全文
posted @ 2021-04-29 12:53 lodger47
阅读(22)
评论(0)
推荐(0)
c++ (函数指针适配器)
摘要: 函数指针适配器 取反适配器 void printFunTwo(int val,int start) { cout << val << endl; cout << start << endl; } //函数指针适配器 void test03() { vector<int> v; for (int i
阅读全文
posted @ 2021-04-29 11:43 lodger47
阅读(44)
评论(0)
推荐(0)
c++ (适配器 && 取反)
摘要: 取反适配器 #include <vector> #include <algorithm> #include <functional> class findDafive :public unary_function<int,bool> { public: bool operator()(int val
阅读全文
posted @ 2021-04-29 11:26 lodger47
阅读(163)
评论(0)
推荐(0)
c++(适配器)
摘要: 适配器 #include <vector> #include <algorithm> #include <functional> //第一步 绑定 数据 bind2nd //继承类 binary_function<参数类型1,参数类型2,返回值类型> //加const修饰 operator() cl
阅读全文
posted @ 2021-04-29 11:10 lodger47
阅读(34)
评论(0)
推荐(0)
c++(谓词)
摘要: c++(谓词) 谓词 class findNum { public: //一元谓词 谓词体现在返回值时bool 一元体现在 形参上 bool operator()(int num) { return num > 20; } }; //一元谓词 void test01() { vector<int>
阅读全文
posted @ 2021-04-29 10:36 lodger47
阅读(51)
评论(0)
推荐(0)
c++(函数对象,也叫做仿函数)
摘要: c++(函数对象,也叫做仿函数) 基本使用 class MyPrint { public: void operator()(int num) { cout << "num = " << num << endl; cout++; } int count=0; }; void test01() { //
阅读全文
posted @ 2021-04-29 10:21 lodger47
阅读(195)
评论(0)
推荐(0)
2021年4月28日
linux (vim支持python3)
摘要: vim8 支持python3 删除原来的vim → sudo yum remove vim sudo git clone https://github.com/vim/vim.git cd vim/src sudo ./configure --with-features=huge --enable-
阅读全文
posted @ 2021-04-28 23:22 lodger47
阅读(121)
评论(0)
推荐(0)
vim (插件 代码片段)
摘要: ultisnips 快捷键 " supertab用来防止使用tab展开snippet与youcompleteme的tab补全发生冲突 Plug 'ervandew/supertab' " ultisnips是引擎 Plug 'SirVer/ultisnips' " 所有常用snippet都在vim-
阅读全文
posted @ 2021-04-28 22:14 lodger47
阅读(198)
评论(0)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
36
下一页
公告
导航
博客园
首页
新随笔
联系
订阅
管理