会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
modao
博客园
首页
订阅
管理
上一页
1
2
3
4
5
下一页
2021年1月6日
C++Primer第12章:文本查询程序
摘要: 定义QueryResult //// Created by modao on 2021/1/6.//#ifndef TEXT_QUE...
阅读全文
posted @ 2021-01-06 17:58 modao
阅读(29)
评论(0)
推荐(0)
2021年1月4日
类内声明类外定义:inline、static、const、virtual
摘要: inline 类内定义的默认为inline类外定义的,类内声明为inline,类外定义可省略inline static 类内声明st...
阅读全文
posted @ 2021-01-04 11:31 modao
阅读(142)
评论(0)
推荐(0)
2020年12月9日
sprintf、snprintf、strcpy、strncpy、memcpy 函数
摘要: sprintf、snprintf、strcpy、strncpy、memcpy 函数 sprintf函数 int sprintf(c...
阅读全文
posted @ 2020-12-09 15:42 modao
阅读(266)
评论(0)
推荐(0)
cpp-数组初始化
摘要: 在cpp中,普通数组是固定长度的,标准库类型vector可理解为可扩充数组(即长度不固定)。 编译参数:g++ --std=cpp2...
阅读全文
posted @ 2020-12-09 15:39 modao
阅读(223)
评论(0)
推荐(0)
cpp输入输出加速-demo
摘要: 用法: std::ios::sync_with_stdio(false);std::cin.tie(nullptr); 解释:这...
阅读全文
posted @ 2020-12-09 15:37 modao
阅读(71)
评论(0)
推荐(0)
lambda-demo
摘要: lambda lambda 表达式(通常称为 " lambda")是一种在被调用的位置或作为自变量传递给函数的位置定义匿名函数对象...
阅读全文
posted @ 2020-12-09 15:35 modao
阅读(39)
评论(0)
推荐(0)
std::bind(callable, arg_list)
摘要: std::bind(callable, arg_list) #include #include #include #include...
阅读全文
posted @ 2020-12-09 15:34 modao
阅读(37)
评论(0)
推荐(0)
2020年1月19日
[蓝桥杯2015初赛]方程整数解
摘要: [蓝桥杯2015初赛]方程整数解 题目描述 方程: a^2 + b^2 + c^2 = 1000 这个方程有正整数解吗?有:a,b...
阅读全文
posted @ 2020-01-19 14:42 modao
阅读(37)
评论(0)
推荐(0)
多重背包问题 I
摘要: 多重背包问题 I 有 N 种物品和一个容量是 V的背包,每种物品都有无限件可用。第 i种物品的体积是 vi,价值是 wi。求解将哪些...
阅读全文
posted @ 2020-01-19 14:24 modao
阅读(34)
评论(0)
推荐(0)
完全背包问题
摘要: 完全背包问题 有 N 种物品和一个容量是 V的背包,每种物品都有无限件可用。第 i种物品的体积是 vi,价值是 wi。求解将哪些物品...
阅读全文
posted @ 2020-01-19 14:19 modao
阅读(26)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告