无奈,二十行代码看了几个小时。。 还不知道理解的对不对。。真完蛋。。思路:仔细想想,感觉难在怎么建立数据结构,存取状态。。用set来保存状态,set> A,B,其中A.first保存的是数字的值,sceond保存的是数字位置。set B的first保存的是要求的最小组数,second保存的是位置。最...
分类:
其他 时间:
2015-04-02 20:38:36
收藏:
0 评论:
0 赞:
0 阅读:
165
基于共享主键的一对一: this.HasRequired(t => t.TRDConInfo) .WithOptional(t => t.TRDFoundationProjCheck);一对多 this.HasRequired(t => t.ComponentBelong) .WithM...
分类:
其他 时间:
2015-04-02 20:38:16
收藏:
0 评论:
0 赞:
0 阅读:
209
显示弹出层 弹出层需要显示的所有内容 关闭弹出层
分类:
其他 时间:
2015-04-02 20:37:26
收藏:
0 评论:
0 赞:
0 阅读:
209
一:SPL中的双向链表---SplDoublyLinkedList() 双向链表的操作总结当前节点的操作:rewind()指向bottom,current() 当前节点,next() 下一个节点,prev() 上一个节点。增加节点的操作:push()会插入到top、unshift()会插入到bo.....
分类:
其他 时间:
2015-04-02 20:37:16
收藏:
0 评论:
0 赞:
0 阅读:
355
poj1039——计算几何 求直线与线段交点,判断两条直线是否相交PipeTime Limit:1000MSMemory Limit:10000KTotal Submissions:9439Accepted:2854DescriptionThe GX Light Pipeline Company s...
分类:
其他 时间:
2015-04-02 20:37:06
收藏:
0 评论:
0 赞:
0 阅读:
152
static void Main(string[] args) { while (true) { int n = 0; for (int g = 1; g*2 <=100; g++) { for (int m = 1; m*1 <=100; m++) { for (int x = 1; x*0.5....
分类:
其他 时间:
2015-04-02 20:36:56
收藏:
0 评论:
0 赞:
0 阅读:
147
#include#includeusing namespace std;int main(){ int n; while(cin>>n){ int i,j,k=0,a[10000]; a[0]=1; for(i=1;i=0;i--) ...
分类:
其他 时间:
2015-04-02 20:36:16
收藏:
0 评论:
0 赞:
0 阅读:
117
Nginx开源软件默认没有提供TCP协议的负载均衡,下面记录一下我的安装过程:1. 下载nginx最新稳定版的源码。可访问:http://www.nginx.org或linux命令下载到本地:Bash代码wgethttp://www.nginx.org/download/nginx-1.2.7.ta...
分类:
其他 时间:
2015-04-02 20:36:06
收藏:
0 评论:
0 赞:
0 阅读:
121
1.故事板并不完美,它由一些明显的不足之处。但是故事板是构建用户界面的趋势,以及如何使用故事板来完成用nib文件完成的事情(比如和控制器进行通信)。2.添加故事板:方式和添加新文件的方式相同。事实上,从Xcode 5开始,就已经默认打开了Use Storyboard选项,这使得从应用删除故事板变得更...
分类:
其他 时间:
2015-04-02 20:35:56
收藏:
0 评论:
0 赞:
0 阅读:
293
http://book.51cto.com/art/201104/255655.htm3.2 光照篇(2)2.光源事实上光源才是所有光照效果的基础,没有光源一切都无从谈起。OpenGL中我们可以设置8个光源,其编号分别为GL_LIGHT0、GL_LIGHT1、……、GL_LIGHT7。就相当于现实生...
分类:
其他 时间:
2015-04-02 20:35:26
收藏:
0 评论:
0 赞:
0 阅读:
196
30网段已经发生了2次ARP了排查方法:我直去核心交换机直连镜像口,用wireshark抓包,过滤出ARP的包发现的确有ARP的攻击,因为没有统计公司电脑和无线路由的MAC地址,所以只能一个个把无线路由器拔掉,然后能上网了,最后在一个个的插上,插上大家就断网的那个就是问题所在在浏览器中输入无线路由器...
分类:
其他 时间:
2015-04-02 20:35:16
收藏:
0 评论:
0 赞:
0 阅读:
266
static void Main(string[] args) { while (true) { /*★ ★★ //最重要的就是找规律 i--行 ★★★ j--列 ★★★★ ★★★★★ */ /*string s = "★"; int n; Console.WriteLine("请输入一个数:...
分类:
其他 时间:
2015-04-02 20:35:06
收藏:
0 评论:
0 赞:
0 阅读:
128
用友U8客户端连接不上服务器全攻略http://www.enet.com.cn2009年09月23日09:26 来自论坛【导读】:如果网络不通,就让用户查找网络原因 检查步骤: 1.网络是否通? 方法:ping 服务器名称/ip -t 如果网络不通,就让用户查找网络原因; 如果网络...
分类:
其他 时间:
2015-04-02 20:34:46
收藏:
0 评论:
0 赞:
0 阅读:
199
实验要求:要求程序必须能处理1000个元素每个元素是int32类型的,出现子数组之和大于整形表示的最大范围会出现什么情况代码: 1 package 子数组更改; 2 3 import java.util.Scanner; 4 5 public class zsz { 6 7 /** 8...
分类:
其他 时间:
2015-04-02 20:34:26
收藏:
0 评论:
0 赞:
0 阅读:
180
电梯调研背景:我校基础教学楼一共18层。共设4个电梯。本次的调研包括:旅客重量(平均70公斤)、电梯开关门时间、每人走进电梯的时间、电梯每升一层需要的时间、高峰期人流量、非高峰期人流量、调研结果:电梯开关门时间:3s(平均)每人走进电梯的时间:2s电梯每升一层需要的时间:2s高峰期人流量:60人/h...
分类:
其他 时间:
2015-04-02 20:34:16
收藏:
0 评论:
0 赞:
0 阅读:
223
display: flex;justify-content: center;align-items: center; height: 300px;border:1px solid;
分类:
其他 时间:
2015-04-02 20:33:36
收藏:
0 评论:
0 赞:
0 阅读:
152
publicbooleandoc2pdf(StringsrcFilePath,StringpdfFilePath){ActiveXComponentapp=null;Dispatchdoc=null;try{ComThread.InitSTA();app=newActiveXComponent("W...
分类:
其他 时间:
2015-04-02 20:33:06
收藏:
0 评论:
0 赞:
0 阅读:
213
static void Main(string[] args) { while (true) { int i=1; while (i<=100) { Console.WriteLine(i); i++; if (i==50) { Console.WriteLine("sdsa"); } c...
分类:
其他 时间:
2015-04-02 20:32:46
收藏:
0 评论:
0 赞:
0 阅读:
97
UITouch1.UITouch *touch = [touches anyObject];//找到触摸事件 if([touch.view isKindOfClass:[UIImageView class]]){ CGPoint point = [touch locationInView:self....
分类:
其他 时间:
2015-04-02 20:32:26
收藏:
0 评论:
0 赞:
0 阅读:
312
重载Point其中减法表示向量,乘法表示叉积struct Point{ double x,y; friend double operator*(const Point A,const Point B) { return A.x*B.y-A.y*B.x; } ...
分类:
其他 时间:
2015-04-02 20:32:16
收藏:
0 评论:
0 赞:
0 阅读:
174