1 QImage image(m_Pixmap.width(), m_Pixmap.height(), QImage::Format_RGB888); 2 QPainter painter(&image); 3 m_pGraphicsScene->render(&painter); //关键函数 4 ...
分类:
Web程序 时间:
2021-02-20 12:42:00
阅读次数:
0
介绍线程池的五种状态RUNNING、SHUTDOWN、STOP、TIDYING和TERMINATED,并简述五种状态之间的切换。 ...
分类:
编程语言 时间:
2021-02-20 12:23:58
阅读次数:
0
数据库类型blob 存: QByteArray byteArry; QPixmap pix; QBuffer buffer(&byteArry); buffer.open(QIODevice::WriteOnly); pix.save(&buffer, "png", 0); 取: QPixmap h ...
分类:
数据库 时间:
2021-02-20 12:22:28
阅读次数:
0
水题~。 魔鬼变量名。 vector<int> positive_coupon,negative_coupon; vector<int> positive_product,negative_product; int nc,np; int main() { cin>>nc; for(int i=0;i ...
分类:
其他好文 时间:
2021-02-20 11:51:01
阅读次数:
0
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { ...
分类:
其他好文 时间:
2021-02-19 13:54:37
阅读次数:
0
容斥原理 \(\because C_n^0 + C_n^1 + C_n^2 + \ldots + C_n^n = 2^n\) \(\therefore C_n^1 + C_n^2 + \ldots + C_n^n = 2^n - 1\) 实现的时候,奇数加,偶数减。 题意:给定一个整数 n 和 m ...
分类:
其他好文 时间:
2021-02-19 13:23:10
阅读次数:
0
水题。 int cnt[105]; int n,m; int main() { cin>>n; for(int i=0;i<n;i++) { int x; cin>>x; cnt[x]++; } cin>>m; for(int i=0;i<m;i++) { int x; cin>>x; if(i) ...
分类:
其他好文 时间:
2021-02-19 13:14:05
阅读次数:
0
兄弟题1084 Broken Keyboard (20 分),一样的水~。 ps:`当按键都没坏的时候,输入可能为空,要用getline而不能用cin。 bool vis[200]; string a,b; int main() { getline(cin,a); getline(cin,b); f ...
分类:
其他好文 时间:
2021-02-19 13:11:20
阅读次数:
0
兄弟题1039 Course List for Student (25 分),一样很水。 vector<string> course[2510]; int n,m; int main() { cin>>n>>m; for(int i=0;i<n;i++) { string name; name.re ...
分类:
其他好文 时间:
2021-02-19 12:59:54
阅读次数:
0
import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.geometry.Pos ...
分类:
编程语言 时间:
2021-02-18 13:16:42
阅读次数:
0