链接:http://acm.hdu.edu.cn/showproblem.php?pid=1717举例:0.24333333…………=(243-24)/900=73/3000.9545454…………=(954-9)/990=945/990=21/22代码:#include#include#defin...
分类:
其他好文 时间:
2015-08-13 08:54:00
阅读次数:
180
由于页面间跳转以后,pageScope域失效,所以,关于pageContext.setAttribute和pageContext.getAttribute的使用(pagecontext作用域是pageScope)如a.jsp跳转到b.jsp,在a.jsp中必须有:这样的话,两个jsp其实是同一个页面...
分类:
其他好文 时间:
2015-08-13 08:52:38
阅读次数:
115
使用COM 风格的编程接口假设不直接使用 COM 库。不创建自己的包装。那么更可能的是使用 COM 风格的编程接口。这是由于如今很多开发商公布应用程序时。提供了首选的互操作程序集(Primary Interop Assemblies)。这是预先创建的 COM 包装,因此,我们就不须要再自己考虑用 T...
分类:
其他好文 时间:
2015-08-13 08:53:10
阅读次数:
114
class Program { public struct chengji { public double tiyu; } struct Student { ...
分类:
其他好文 时间:
2015-08-13 08:53:28
阅读次数:
110
一个 .方法:1.引入新的标签:2.引入jar包:struts2-dojo-plugin-2.2.3.jar3.在中增加4.前台代码: 二.dtree方法(通过读取数据库中表显示到dtree):1.下载插件dtree。地址:htt...
分类:
其他好文 时间:
2015-08-13 08:53:46
阅读次数:
162
hadoop shell运行的时候不会报这个错误,因为我已经重新在64位机上编译了源文件,并把so文件复制到hadoop的native目录下,而且环境变量也设置正确了,所以hadoop本身没有问题。 但在启动spark相关的shell时就会报这个问题。 经过查找,发现知乎上有人问了这个问题,我尝试照...
分类:
其他好文 时间:
2015-08-13 08:52:14
阅读次数:
148
Dividing Time Limit: 1000MS Memory Limit: 10000KDescription Marsha and Bill own a collection of marbles. They want to split the collectio...
分类:
其他好文 时间:
2015-08-13 08:51:52
阅读次数:
96
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and ...
分类:
其他好文 时间:
2015-08-13 08:49:56
阅读次数:
129
Celica is a brave person and believer of a God in the bright side. He always fights against the monsters that endanger humans. One day, he is asked to...
分类:
其他好文 时间:
2015-08-13 08:49:20
阅读次数:
109
1、ifdef
#ifdef XXXXX
......
#endif如果XXXXX被定义了,则编译上述代码。
2、ifndef
#ifndef XXXXX
......
#endif如果XXXXX没有被定义,则编译上述代码。
3、if
#if XXXXX
.....
#endif如果XXXXX被定义了,并且值为真,则编译上述代码。
4、if define
...
分类:
其他好文 时间:
2015-08-13 07:45:50
阅读次数:
165
状态码
含义
100
客户端应当继续发送请求。这个临时响应是用来通知客户端它的部分请求已经被服务器接收,且仍未被拒绝。客户端应当继续发送请求的剩余部分,或者如果请求已经完成,忽略这个响应。服务器必须在请求完成后向客户端发送一个最终响应。
101
服务器已经理解了客户端的请求,并将通过Upgrade 消息头通知客户端采用不同的协议来完成这个请求。在发送完...
分类:
其他好文 时间:
2015-08-13 07:47:23
阅读次数:
165
[Leetcode 2, Medium] Add Two Numbers
分类:
其他好文 时间:
2015-08-13 07:44:04
阅读次数:
120
public class 杨辉三角 { /** * @param args */ public static void main(String[] args) { int [][]xx=new int[10][10]; xx[0][0]=1; for(int i=1;i<10;i++)...
分类:
其他好文 时间:
2015-08-13 07:46:01
阅读次数:
145
学习了Scala中For表达式的强大表现力,scala应用for循环比应用高阶函数表现力强很多,高阶函数的行为指定了对数据处理的细节。实际上for是用map的方式,更加简洁。例子如下caseclassPerson(name:String,isMale:Boolean,children:Person*...
分类:
其他好文 时间:
2015-08-13 07:42:56
阅读次数:
154
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{ class Program { static void i()//没有返回值,没...
分类:
其他好文 时间:
2015-08-13 07:42:29
阅读次数:
125
学习了Scala中List的Scala中List和ListBuffer设计实现思考,scalalist内部很多操作是listbuffer做的,因为改变元素,listbuffer非常高效,我们看见tl是var类型的,但是他属于scala包及子包,我们看上去是可变的,但是由于包的限制我们看不到。list...
分类:
其他好文 时间:
2015-08-13 07:42:18
阅读次数:
475