码迷,mamicode.com
首页 >  
搜索关键字:qt cin cout cerr    ( 22206个结果
C++ 新标准生成随机数
在c++新标准之前通常使用c的函数rand来生成随机数。 现在可以使用下面这种方式: #include <random> #include <ctime> //生成0到9之前的随机整数 static std::default_random_engine e(time(0));//time(0)返回特 ...
分类:编程语言   时间:2021-06-02 20:13:41    阅读次数:0
QT开源库
https://github.com/victronenergy/QsLog https://github.com/mkroening/qslog QsLog - the simple Qt logger QsLog is an easy to use logger that is based on ...
分类:其他好文   时间:2021-06-02 19:08:35    阅读次数:0
基于开源Tars的动态负载均衡实践
本文主要论述了vivo在TARS开源的技术基础上,对动态负载均衡算法策略的设计思路和技术实践。 ...
分类:其他好文   时间:2021-06-02 18:33:46    阅读次数:0
Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2)
#include <bits/stdc++.h> #define please return #define ac 0 using namespace std; using ll = long long ; bool vis[1003]; void solve() { int n,m; cin>>n ...
分类:编程语言   时间:2021-06-02 18:28:48    阅读次数:0
信息学C++教程<-3->输入输出格式控制
二进制输出整数 在计算机系统内的数据本身就是二进制 **思考:**在C++中,如何通过cout函数来输出二进制的数字呢? **所需库文件:**1.iomanip //管理C++格式控制 ? 2.bitset //二进制 示例代码: #include <iostream> #include <ioma ...
分类:编程语言   时间:2021-06-02 16:51:29    阅读次数:0
Codeforces 1528B - Kavi on Pairing Duty (dp,筛)
Description 思路 从样例的图片可以很好的理清思路。 设$dp[i]$为方案数,那么有两种贡献: 用等长的线段覆盖整个区间,共有$g(i)$种情况,其中$g(i)$代表$i$的约数个数。 中间留空,一共有$dp[i-1]+dp[i-2]+...+dp[1]$种情况。 所以转移式是 \(dp ...
分类:其他好文   时间:2021-06-02 16:08:48    阅读次数:0
[ AGC006 D ] Median Pyramid Hard
题目 Atcoder 思路 代码 #include <iostream> using namespace std; const int N = 200010; int n, m, a[N], b[N]; int check(int mid) { for (int i = 1; i <= n * 2 ...
分类:其他好文   时间:2021-06-02 15:33:04    阅读次数:0
基于Qt的生命游戏程序
软件工程课程的课程实践项目之一,总的来说是毫无实用性的玩具程序。 不过在编写的过程中较为有意识的使用了软件工程方面的知识(起码将程序分为了三个模块,并且努力的降低了耦合性。。。) 站在本人的角度上来讲,是对软件工程的一次实践,美中不足的地方在于没有事先编写需求说明文档、设计用例,并使用UML云云。 ...
分类:其他好文   时间:2021-06-02 14:58:19    阅读次数:0
范围for循环
//普通for循环 void test(){ int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); ++i){ cout << arr[i] << " "; } cou ...
分类:其他好文   时间:2021-06-02 14:53:43    阅读次数:0
将两个顺序数组合并 并查找中位数(时间复杂度低)
#include<stdio.h> int main(){ int n; cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++)cin>>b[i]; int x=1,y=1,tot=0; while(x<=n&&y<=n){ if( ...
分类:编程语言   时间:2021-06-02 13:49:15    阅读次数:0
22206条   上一页 1 ... 7 8 9 10 11 ... 2221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!