码迷,mamicode.com
首页 >  
搜索关键字:iostream    ( 13291个结果
关于map的按照value排序输出
关于map的按照value排序输出;会错题意,但是华为实习笔试是这个思路,按照map的value排序输出。 #include<iostream> using namespace std; #include<string> #include<map> #include<vector> #include ...
分类:编程语言   时间:2021-04-01 13:44:57    阅读次数:0
设单链表中存放着n个字符,每个节点保存一个字符。试编写算法,判断该字符串是否有中心对称关系。
1 #include<iostream> 2 #include<cstring> 3 #include<cstdlib> 4 using namespace std; 5 struct node* create1(string); 6 struct node* create2(string); 7 ...
分类:编程语言   时间:2021-03-31 12:29:24    阅读次数:0
二分查找
#include <iostream> void print_arrs(const int *, int N); void sort_arrs(int *pInt, int N); constexpr int COUNT = 10; int search_data(const int *pInt, ...
分类:其他好文   时间:2021-03-31 12:20:32    阅读次数:0
C++实现简易线程池
#include <iostream> #include <vector> #include <thread> #include <mutex> #include <condition_variable> #include <queue> #include <functional> using na ...
分类:编程语言   时间:2021-03-30 13:55:19    阅读次数:0
codeforces CF981C Useful Decomposition 菊花图性质
博客迁移计划12 \(\rightarrow\) 戳我看CF原题 C. Useful Decomposition time limit per test: 1 second memory limit per test: 256 megabytes input: standard input outp ...
分类:其他好文   时间:2021-03-30 13:14:19    阅读次数:0
C++ STL deque
一、简介 1. deque(Double Ended Queues,双向队列)和向量很相似,但是它允许在容器头部快速插入和删除(就像在尾部一样)。 2. 资料网址:http://www.cplusplus.com/reference/deque/deque/ 3.实际上,deque是对vector和 ...
分类:编程语言   时间:2021-03-30 13:10:24    阅读次数:0
【】future用法
std::future 介绍 1 #include <iostream> 2 #include <thread> 3 #include <future> 4 5 using namespace std; 6 7 void DoWork(promise<int> thePromise) 8 { 9 / ...
分类:其他好文   时间:2021-03-29 12:48:41    阅读次数:0
CSP 201604-1 折点计数
#include<iostream> using namespace std; int main() { int data[1010]; int n, sum = 0; int flag = 0; cin >> n; cin >> data[0] >> data[1]; flag = (data[1 ...
分类:其他好文   时间:2021-03-29 12:40:26    阅读次数:0
Opencv -- 显示创建Mat对象的七种方式
方式一: #include<iostream> #include<opencv2/opencv.hpp> using namespace std; using namespace cv; int main() { //创建一个2*2 类型为8位的uchar类型三通道的 颜色为黄色 Mat img(2 ...
分类:其他好文   时间:2021-03-26 15:26:38    阅读次数:0
muduo: Exception Thread Mutex
注释过的源码太多就不放在这,可以去GitHub查看 下面是测试程序: #include "Exception.h" #include <iostream> class Bar { public: void test() { throw::muduo::Exception("oops"); // 抛出 ...
分类:其他好文   时间:2021-03-18 14:42:02    阅读次数:0
13291条   上一页 1 ... 10 11 12 13 14 ... 1330 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!