c++ STL六大部件

cpp 复制代码
#include <iostream>
#include <vector>
#include <functional>
#include <algorithm>

using namespace std;

int main()
{
    int ia [] = { 10,20,5,55,25 };
    vector<int,allocator<int>> v(ia, ia + 6);
    cout << count_if(v.begin(), v.end(), not1(
        bind2nd(less<int>(), 40)
    )
    );

 
}
相关推荐
HellowAmy5 小时前
我的C++规范 - 玩一个小游戏
开发语言·c++·代码规范
自学不成才5 小时前
深度复盘:一次flutter应用基于内存取证的黑盒加密破解实录并完善算法推理助手
c++·python·算法·数据挖掘
玖釉-7 小时前
[Vulkan 学习之路] 08 - 给图片穿马甲:图像视图 (Image Views)
c++·windows·图形渲染
m0_748250038 小时前
C++ 信号处理
c++·算法·信号处理
yuyanjingtao8 小时前
动态规划 背包 之 凑钱
c++·算法·青少年编程·动态规划·gesp·csp-j/s
scx201310049 小时前
20260112树状数组总结
数据结构·c++·算法·树状数组
星竹晨L10 小时前
【C++内存安全管理】智能指针的使用和原理
开发语言·c++
智者知已应修善业10 小时前
【C语言 dfs算法 十四届蓝桥杯 D飞机降落问题】2024-4-12
c语言·c++·经验分享·笔记·算法·蓝桥杯·深度优先
玖釉-10 小时前
[Vulkan 学习之路] 09 - 显卡的流水线工厂:图形管线概览 (Graphics Pipeline)
c++·windows·图形渲染
无限进步_11 小时前
【C语言&数据结构】二叉树遍历:从前序构建到中序输出
c语言·开发语言·数据结构·c++·算法·github·visual studio