namespace 结构体_枚举类型{ class Program { struct jiegouti { public int fenshu; public string name; public string kecheng; } static void Main(string[] args) ...
分类:
其他好文 时间:
2015-04-08 22:47:57
阅读次数:
173
namespace 结构体英雄联盟练一练{ class Program { struct player { public string name; public int dengji; public zy z; public zb cz; } struct zy { public int ll; p...
分类:
其他好文 时间:
2015-04-08 22:46:42
阅读次数:
139
struts2 Action获取表单传值1.通过属性驱动式JSP: Action:直接通过get、set方法获取。public class sysAction extends ActionSupport{ private String username; public String l...
分类:
Web程序 时间:
2015-04-08 22:46:00
阅读次数:
128
String path=Parameter.class.getResource("").getPath();//得到路径//String path=Parameter.class.getResource("").toString();//这个不行,无法处理里面的空格。//System.out.pri...
分类:
编程语言 时间:
2015-04-08 21:27:24
阅读次数:
202
String baseinfo="/com/Bean/DBhelp.properties"; filename=getClass().getClassLoader().getResource("/").getPath(); filename=filename.substring(1,file...
分类:
编程语言 时间:
2015-04-08 21:21:50
阅读次数:
196
这个方法既节约了空间又节约了时间:#include"iostream"#include"queue"#include"string.h"#include"stdio.h"#include"cmath"using namespace std;int main(){ int i,j,s,t; ...
分类:
其他好文 时间:
2015-04-08 21:19:33
阅读次数:
116
如果要求不被转义的话可以采用StringEscapeUtils.unescapeXml(ss);方法 下面是其他的一些转义的方法 ????????String?str?=?"中国共产党"; ? ?System.out.println("用escapeJava方法转义之后的字符串...
分类:
编程语言 时间:
2015-04-08 18:21:19
阅读次数:
153
利用一个spark receiver 接收多个flume agentString host = args[0];
int port = Integer.parseInt(args[1]);
String host1 = args[2];
int port1 = Integer.parseInt(args[3]); InetSocketAddress address1 = new Ine...
分类:
Web程序 时间:
2015-04-08 18:09:37
阅读次数:
195
1,使用crypt()函数进行加密
crypt()函数可以进行单项加密,具体语法如下:
string crypt(string str[,tring salt])
其中 str是要加密的字符串,salt为加密时使用的干扰串,如果省掉第二个参数,就会随机生成一个干扰串。crypt()函数支持四种算法和长度。具体如下表:
示例代码如下:
<?php $str ="I'm jack!!!";
ec...
分类:
Web程序 时间:
2015-04-08 18:02:18
阅读次数:
160
499错误是什么ngx_string(ngx_http_error_495_page),/*495,httpscertificateerror*/ngx_string(ngx_http_error_496_page),/*496,httpsnocertificate*/ngx_string(ngx_http_error_497_page),/*497,httptohttps*/ngx_string(ngx_http_error_404_page),/*498,canceled*/ngx_null_s..
分类:
其他好文 时间:
2015-04-08 16:47:21
阅读次数:
305