//Stack 先进后出 没有索引 Stack st = new Stack(); st.Push(12); st.Push(11); st.Push(22); st...
分类:
其他好文 时间:
2015-08-11 00:04:43
阅读次数:
197
用集合代替数组: Console.Write("请输入人数:"); int renshu = int.Parse(Console.ReadLine()); ArrayList chengji = new ArrayList(); ...
分类:
其他好文 时间:
2015-08-11 00:05:11
阅读次数:
141
Piggy-BankProblem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for t...
分类:
其他好文 时间:
2015-08-11 00:03:22
阅读次数:
179
分页主要分为:直接使用ResultSet来处理和定位行集SQL查询。 直接使用ResultSet来处理: 优点:减少了数据库连接对象的多次分配获取,减少了对数据库的SQL查询执行。 缺点:占用数据库访问资源-数据库连接对象,并占用了数据库上的资源-游标;会消耗大量内存; 定位行集SQL查询: 优点:...
分类:
其他好文 时间:
2015-08-11 00:01:38
阅读次数:
151
------------- ViewController.m -------------#import "CZViewController.h"#import "CZTg.h"#import "CZTgCell.h"#import "CZHeaderView.h"#import "CZTgFoote...
分类:
其他好文 时间:
2015-08-11 00:02:24
阅读次数:
128
现在的RSS一个重大的问题就是内容重复,针对性不是特别的强。还有一点是无法推荐好的优质文章。说实在的时间是个宝贵的东西,宁可花点钱读点有价值的文章,也不看一堆rss结果中找好的文章,还不一定找到,浪费时间啊。所有我决定做一个小工具。文章聚合并去重,同时还根据友情链接挖掘好的rss源。项目目前为止,可...
分类:
其他好文 时间:
2015-08-11 00:00:07
阅读次数:
339
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace Cons...
分类:
其他好文 时间:
2015-08-11 00:01:24
阅读次数:
303
一、cinder概述: 1、F版之前,并没有cinder,对应的组件为nova-volume;以Rest API的形式提供服务 2、cinder目标: 减少nova的复杂性,降低nova的负载,支持多种后端存储,增加和其他组件之间的交互; 后端存储包括isics 以及ceph等; ...
分类:
其他好文 时间:
2015-08-11 00:00:24
阅读次数:
356
分治+并查集。假设要求[L,mid]的答案,那么很明显,如果一条边的两个端点都>mid的话或者一个端点>mid一个端点 2 #include 3 #define N 300010 4 using namespace std; 5 int f[N],d[N]; 6 int n,m,i,d...
分类:
其他好文 时间:
2015-08-11 00:02:04
阅读次数:
548
程序示例 1 #include 2 using namespace std; 3 class a 4 { 5 public: 6 a(){cout<<"构造a"<<endl;} 7 ~a(){cout<<"析构a"<<endl;} 8 }; 9 class b10 {11 publ...
分类:
其他好文 时间:
2015-08-11 00:00:10
阅读次数:
354
scala是一门函数式编程和面向对象编程结合的语言 函数式编程非常擅长数值计算而面向对象特别适合于大型工程或项目的组织以及团队的分工合作 我们借助scala可以非常优雅的构造出各种规模的项目,这种项目不仅结构优雅而且在做计算的时候非常的精致和富裕表现力, 所以从软件工程和具体的数值...
分类:
其他好文 时间:
2015-08-10 23:59:42
阅读次数:
443
BlogJava http://jlive.blogjava.net/default.html?paging=1&page=2CentOS教程 http://www.centos.bz/category/mysql/Iteye论坛 http://app.iteye.com/messagesJava ...
分类:
其他好文 时间:
2015-08-11 00:01:00
阅读次数:
383
过路费 【问题描述】在某个遥远的国家里,有 n 个城市。编号为 1,2,3,…,n。这个国家的政府修 建了 m 条双向道路,每条道路连接着两个城市。政府规定从城市 S 到城市 T 需 要收取的过路费为所经过城市之间道路长度的最大值。如:A 到 B 长度为 2,B 到 C 长度为 3,那么开车从 A....
分类:
其他好文 时间:
2015-08-11 00:00:21
阅读次数:
415
1.边框的输入边框的输入 2.表格的添加和删除表格的添加、删除姓名:年龄: ID 姓名 年龄 操作 1 Blue 27 ...
分类:
其他好文 时间:
2015-08-11 00:00:06
阅读次数:
433
1、准备工作新建一个JavaWeb项目HelloWord,导入Struts2的.jar包,在Web.xml下配置Struts2的监听,在src下添加Struts2的配置文件struts.xml;将该项目部署到服务器(Tomcat)上,运行检查项目是否部署成功和其他错误!确定一切都正常后,接下来开始编...
分类:
其他好文 时间:
2015-08-10 23:57:44
阅读次数:
271
poj 3264Balanced Lineup题意:求 一段 区间 的 最大值和最小值 的差值题解:线段树碎碎念:某种意义上说,第一道自己手写的线段树,总之蛮好~#include #include #include #include using namespace std;const int MAX...
分类:
其他好文 时间:
2015-08-10 23:57:55
阅读次数:
313
My friend is working on some case, and she looks not in the mood. I ask her what's going on. She wants me to look at the screenshot as below. That's w...
分类:
其他好文 时间:
2015-08-10 23:58:24
阅读次数:
529