上一篇导出excel,是导出已知固定列,有时候我们根本就不知道有几列、列名是什么,因此这些动态列,可以用Dictionary<string,string>接收。 1、实体Student上加上一个字段Dictionarys Student.cs 2、表头表体类上加上动态列的添加表头与表体 Epplus ...
vector<pair<int,int> >v;很常用 还有一种写法 ...
分类:
编程语言 时间:
2019-01-31 19:20:22
阅读次数:
205
COMS 4771 HW0Due: Sun Jan 27, 2019 at 11:59pmThis is a calibration assignment (HW0). The goal of this assignment is for you to recall basicconcepts, a ...
分类:
其他好文 时间:
2019-01-29 20:49:03
阅读次数:
173
1770585 How to configure SSL on the AS Java You can use this procedure to configure the necessary ICM parameters to enable the use of SSL for accessin ...
分类:
编程语言 时间:
2019-01-29 12:48:24
阅读次数:
172
HDU5765 Bonds (高维前缀和) 题意:$n(n include include include include include define IOS ios::sync_with_stdio(false) define pb push_back define Pii pair defin ...
分类:
其他好文 时间:
2019-01-28 17:34:54
阅读次数:
228
题目链接:https://loj.ac/problem/6282 题目描述 给出一个长为 nn 的数列,以及 nn 个操作,操作涉及单点插入,单点询问,数据随机生成。 题目描述 给出一个长为 nn 的数列,以及 nn 个操作,操作涉及单点插入,单点询问,数据随机生成。 题目描述 给出一个长为 nn ...
分类:
其他好文 时间:
2019-01-27 21:56:53
阅读次数:
209
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 //创建对组 8 void test01(){ 9 /*方法一:*/ 10 pair pair1(10,20); 11 cout pair2=make_pai... ...
分类:
其他好文 时间:
2019-01-27 11:31:57
阅读次数:
149
std::tuple是类似pair的模板。每个pair的成员类型都不相同,但每个pair都恰好有两个成员。不同std::tuple类型的成员类型也不相同,但一个std::tuple可以有任意数量的成员。每个确定的std::tuple类型的成员数目是固定的,但一个std::tuple类型的成员数目可以 ...
分类:
编程语言 时间:
2019-01-24 21:50:18
阅读次数:
254
题目链接:传送门 思路:建立一个32位的字典树,对每一个要插入的数字查找它异或的最大值(就是尽量全部二进制的值都相反), 然后获得两个数异或的最大值。 #include<iostream> #include<cstdio> #include<cstring> using namespace std; ...
分类:
其他好文 时间:
2019-01-23 22:09:04
阅读次数:
316
std::pair是二元组类模板,就是表示两种相互关联的事物。make_pair实际上是一个创建二元组的便利函数模板,这里用到了C++函数模板的模板参数可省略的特性,不使用这个函数模板的话,每次你要创建一个二元组必须写明模板参数。 如: 1 2 std::pair<char, int> a( 'a' ...
分类:
其他好文 时间:
2019-01-22 01:20:09
阅读次数:
200