```C++ include include include // STL using namespace std; //使用sort()函数必须加上 const int MAXN = 50; struct Student{ char name[15]; char id[15]; int score ...
分类:
其他好文 时间:
2019-02-24 10:24:42
阅读次数:
158
嗯... deque 即为双端队列,是c++语言中STL库中提供的一个东西,其功能比队列更强大,可以从队列的头与尾进行操作... 但是它的操作与队列十分相似,详见代码1: 1 #include <cstdio> 2 #include <iostream> 3 #include <deque> 4 / ...
分类:
其他好文 时间:
2019-02-22 16:42:49
阅读次数:
176
1 #include 2 #include 3 #include // STL 使用相关的函数需要include进来 4 using namespace std; 5 struct Stu_info{ 6 char id[10]; 7 int de, cai, sum; 8 int flag; 9 ... ...
分类:
其他好文 时间:
2019-02-21 23:21:06
阅读次数:
292
梳理下搭建web自动化框架的流程: 创建目录: cases:存放测试用例,unittest框架要求用例名必须以test开头,所以命名test_case.py test_case.py代码如下:继承unittest.TestCase类下面的方法setupclass(),teardownclass()。 ...
分类:
编程语言 时间:
2019-02-21 00:06:53
阅读次数:
252
这段时间的工作是做一个网址导航的项目,面向用户的就是一个首页,于是就想到了使用freemarker这个模板引擎来对首页静态化。 之前是用jsp实现,为了避免用户每次打开页面都查询一次数据库,所以使用了jsp的内置对象application,在Controller中将数据都查询出来, 然后放入appl ...
分类:
Web程序 时间:
2019-02-20 13:12:24
阅读次数:
181
我在使用RetryService的时候,这样使用:是争取的 方法1: 但是这样:是不对的; 方法2: 因为,方法2中,没有使用spring注入; 直接new了一个类,但是new 了一个新的实例之后,这个类里面的 ...
分类:
编程语言 时间:
2019-02-20 12:59:20
阅读次数:
173
7.1 利用STL中自带的排序功能编程的实验范例 7.1.1 Hardwood Species 7.1.2 Who's in the Middle 7.1.3 ACM Rank Table 7.2 应用排序算法编程的实验范例 7.2.1 Flip Sort 7.2.2 Ultra-QuickSort ...
分类:
编程语言 时间:
2019-02-19 13:48:39
阅读次数:
186
//双向队列 deque #include <deque> #include <cstdio> #include <algorithm> using namespace std; int main() { deque<int> ideq(20);//Create a deque ideq with ...
分类:
其他好文 时间:
2019-02-17 12:28:17
阅读次数:
180
In Act I, Leporello is telling Donna Elvira about his master’s long list of conquests: “This is the list of the beauties my master has loved, a list I ...
分类:
其他好文 时间:
2019-02-16 23:15:15
阅读次数:
288
百度云及其他网盘下载地址:点我 编辑推荐 经典C++教程十年新版再现,众多C++高手和读者好评如潮 畅销全球、经久不衰的C++ STL鸿篇巨著 C++程序员案头必 备的STL参考手册 全面涵盖C++11新标准 百度云及其他网盘下载地址:点我 编辑推荐 经典C++教程十年新版再现,众多C++高手和读者 ...
分类:
编程语言 时间:
2019-02-16 20:51:57
阅读次数:
326