码迷,mamicode.com
首页 >  
搜索关键字:qt cin cout cerr    ( 22206个结果
二分查找
#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++Template学习
template<typename T> void funcTmp(T a, T b) { cout << "this is yiban" << endl; } template<> void funcTmp(const char* a, const char* b) { cout << "this ...
分类:编程语言   时间:2021-03-31 12:19:34    阅读次数:0
Qt QListView 简单应用
简言:listview 无论在mfc中还是在Qt中应用是极其广泛的,本节简单进行Qlistview在Qt中操作。 目标:QlistView中插入一段数据,根据点击的相应顺序,弹出列表中的项目。 .h 1 #ifndef MAINWINDOW_H 2 #define MAINWINDOW_H 3 4 ...
分类:其他好文   时间:2021-03-30 13:44:32    阅读次数:0
CF455D Serega and Fun(deque+分块)
这道题强制在线,那么考虑在线算法 好像复杂度低的可以使用平衡树,但是我们这里使用分块算法 因为数据量不是特别大 因为是在前面加一个后面删一个,所以我们考虑使用双端队列来维护这个信息 这样修改的时候,可以把前面的块的末尾加到后面的块,这样每块的大小都不会发生改变 #include<bits/stdc+ ...
分类:其他好文   时间:2021-03-30 13:28:17    阅读次数:0
PAT-甲级-1040 Longest Symmetric String (dp(二维))
题目描述: 找出字符串中最长的回文子串长度 输入输出: Sample Input: Is PAT&TAP symmetric? Sample Output:Sample Output: 11 思路: dp的思想,设字符串str,dp[i][j] = 1 or 0 代表str[i] ~ str[j]间 ...
分类:其他好文   时间:2021-03-29 12:51:45    阅读次数: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
【译】可扩展前端3 ?—? 状态层
目录 引子 正文 公民:actions、action 创建者、reducers 和 store Actions and action 创建者 Store Reducers 状态设计 状态形态 Reducers 合并 归一化 常见模式 选择器 鸭子/模块 状态机 常见陷阱 不要为不同的目的复用相同的异 ...
分类:其他好文   时间:2021-03-29 12:15:26    阅读次数:0
AtCoder Beginner Contest 184 题解
Problem A - Determinant 按题意来进行直接计算 时间复杂度:\(\mathcal{O}(1)\) int main() { ios_base::sync_with_stdio(false), cin.tie(0); int a, b, c, d; cin >> a >> b > ...
分类:其他好文   时间:2021-03-29 11:52:31    阅读次数:0
数组作为函数参数传递
数组作为函数参数传递的时候,会退化为指针,并不能得到数组的大小 一 void test1(int a[]) { cout << sizeof(a) << endl; } int main() { int a[4]; test1(a); } 输出结果是指针的大小,并不是数组的大小 二 void tes ...
分类:编程语言   时间:2021-03-18 14:12:35    阅读次数:0
OpenCV的Mat图像转QImage
QImage Mat2QImage(const cv::Mat& mat) { // 按照Qt帮助文档说明,像素buffer必须在QImage的生命周期内保持有效,且它默认是不会去释放像素buffer,QImage对象之间采用引用计数实现隐式共享底层数据 if (mat.type() == CV_8 ...
分类:其他好文   时间:2021-03-18 14:11:18    阅读次数:0
22206条   上一页 1 ... 20 21 22 23 24 ... 2221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!