新建一个Qt Widgets Application项目,不添加UI文件,如下图: 建立工程后,在**.pro**文件中添加: QT += charts 然后在**.h**文件中添加: #include "QChart" using namespace QtCharts; 在**.cpp**中,先添 ...
分类:
其他好文 时间:
2021-05-24 02:40:25
阅读次数:
0
如果只想在Windows 平台下使用 可以参考 我的这篇文章 https://www.cnblogs.com/guolongzheng/p/13939527.html 代码片段 #pragma once #include <string> #include <codecvt> #include <l ...
分类:
编程语言 时间:
2021-05-24 02:38:25
阅读次数:
0
有向图强连通分量SCC P3387【模板】缩点 注释放代码里啦 时间复杂度O(n+m) #include<iostream> #include<cstdio> #include<cstdlib> #define maxn 100010 #define maxm 1000010 using names ...
分类:
其他好文 时间:
2021-05-24 02:15:52
阅读次数:
0
数据结构二叉树的基本操作设计#include <conio.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #define MAXLEN 100 #define NLAYER 4 typedef struct BiTNode / ...
分类:
编程语言 时间:
2021-05-24 01:40:53
阅读次数:
0
链接:https://ac.nowcoder.com/acm/problem/17193 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N = 1000100; 4 bitset<N>s,p; 5 int main() { ...
分类:
其他好文 时间:
2021-05-24 01:32:55
阅读次数:
0
#include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag= 1; for(i=2;i<j;i++) ...
分类:
其他好文 时间:
2021-05-24 00:15:41
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100 ...
分类:
其他好文 时间:
2021-05-24 00:04:21
阅读次数:
0
ASP调用SDK微信分享好友、朋友圈需要用到sha1.asp,我先来上主代码,然后再附加sha1.asp,方便大家直接复制过去即可使用。 页面:shara.asp 1 <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> 2 <!--#include file="sha ...
分类:
微信 时间:
2021-05-23 23:55:16
阅读次数:
0
「图论」第4章 强连通分量课堂过关 A. 【例题1】有向图缩点 题目 代码 #include <iostream> #include <cstdio> #include <cstring> #include <queue> using namespace std; #define N 10010 # ...
分类:
其他好文 时间:
2021-05-23 23:52:43
阅读次数:
0
题目 一个环形公路上总共有N个车站,每站都有若干升汽油(有的站可能油量为零),每升油可以让汽车行驶一千米。 从某个车站出发,一直按顺时针(或逆时针)方向走遍所有的车站,并回到起点。 在一开始的时候,汽车内油量为零,每到一个车站就把该站所有的油都带上(起点站亦是如此),行驶过程中不能出现没有油的情况。 ...
分类:
其他好文 时间:
2021-05-23 23:51:54
阅读次数:
0