/** 被static修饰的局部变量 1.只有一份内存, 只会初始化一次 2.生命周期会持续到程序结束 3.static改变了局部变量的生命周期, 但是不能改变局部变量的作用域 被static修饰的全局变量 1.作用域仅限于当前文件(任何文件不能通过extern来引用这个全局变量) 2.stati....
分类:
其他 时间:
2015-10-13 20:50:39
收藏:
0 评论:
0 赞:
0 阅读:
189
log4j直接输出日志到flume
分类:
Web开发 时间:
2015-10-13 20:50:29
收藏:
0 评论:
0 赞:
0 阅读:
377
Description:Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal wo...
分类:
其他 时间:
2015-10-13 20:50:19
收藏:
0 评论:
0 赞:
0 阅读:
177
本篇文章由:http://xinpure.com/shell-script-to-modify-the-mac-ip-address/麻烦事最近在笔记本 WIFI 网络上遇到一个麻烦事,在公司需要网络需要静态 IP 地址,关键还是 4 网段的 IP (192.168.4.1)但是家里的的网络是在 1...
分类:
系统服务 时间:
2015-10-13 20:49:59
收藏:
0 评论:
0 赞:
0 阅读:
354
// Disable the idle timer[[UIApplication sharedApplication]setIdleTimerDisabled:YES]; // Or for those who prefer dot syntax:[UIApplication sharedAppli...
分类:
移动平台 时间:
2015-10-13 20:49:39
收藏:
0 评论:
0 赞:
0 阅读:
300
我就贴两段代码,跪着不说话:vara,b,c:dword;beginread(a,b);while b0 dobeginc:=a and b;a:=a xor b;b:=c shl 1;end;writeln(a);end.{$asmmode Intel} vara,b,c:longint; beg...
分类:
其他 时间:
2015-10-13 20:49:29
收藏:
0 评论:
0 赞:
0 阅读:
308
request --> 封装了客户端所有的请求数据!请求行请求头空行请求体(GET没体) 回忆一下http协议!请求协议中的数据都可以通过request对象来获取! * 获取常用信息 > 获取客户端IP,案例:封IP。request.getRemoteAddr() > 请求方式,re...
分类:
其他 时间:
2015-10-13 20:49:19
收藏:
0 评论:
0 赞:
0 阅读:
208
一:最优分解方案(best.pas/c/cpp)[问题描述]经过第一轮的游戏,不少同学将会获得圣诞特别礼物,但这时细心的数学课代表发现了一个问题:留下来的人太多而使礼物数量可能不够,为此,加试了一道数学题:将一个正整数n分解成若干个互不相等的正整数的和,使得这些数的乘积最大,当主持人报出一个n后,请...
分类:
其他 时间:
2015-10-13 20:49:09
收藏:
0 评论:
0 赞:
0 阅读:
463
In the game Lizard Era: Beginning the protagonist will travel with three companions: Lynn, Meliana and Worrigan. Overall the game hasnmandatory ques.....
分类:
其他 时间:
2015-10-13 20:48:59
收藏:
0 评论:
0 赞:
0 阅读:
243
import numpy as npimport matplotlib.pyplot as pltxData = np.arange(0, 10, 1)yData1 = xData.__pow__(2.0)yData2 = np.arange(15, 61, 5)plt.figure(num=1, ...
分类:
其他 时间:
2015-10-13 20:48:49
收藏:
0 评论:
0 赞:
0 阅读:
376
首选“Compile Sources”的位置:选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。如何在未使用arc的工程中引入一个使用了arc特性的文件:对相应的文件添加:-fobjc-arc参数如何在arc工...
分类:
其他 时间:
2015-10-13 20:48:39
收藏:
0 评论:
0 赞:
0 阅读:
178
js中substr,substring,indexOf,lastIndexOf,split等的用法1.substrsubstr(start,length)表示从start位置开始,截取length长度的字符串。var src="images/off_1.png";alert(src.substr(7...
分类:
Web开发 时间:
2015-10-13 20:48:19
收藏:
0 评论:
0 赞:
0 阅读:
301
只考虑int类型的排序,以后考虑泛型实现。 1 public class Heap { 2 3 public int heap_size;//在build_max_heap中初始化,由heap_sort自动调用 4 5 public int parent(int ...
分类:
编程语言 时间:
2015-10-13 20:48:09
收藏:
0 评论:
0 赞:
0 阅读:
316
官网:http://www.pixijs.com/pixi.js介绍:http://hao.jobbole.com/pixi-js/api:http://pixijs.github.io/docs/PIXI.interaction.InteractionData.html http://www.g....
分类:
其他 时间:
2015-10-13 20:47:49
收藏:
0 评论:
0 赞:
0 阅读:
244
1. 从xib的viewcontroll中启动storyboard 或者 从一个storyboard切换到另一个storyboard:[objc]– (IBAction)openStoryboard:(id)sender {UIStoryboard *secondStoryboard = [UISt...
分类:
移动平台 时间:
2015-10-13 20:47:39
收藏:
0 评论:
0 赞:
0 阅读:
353
今天get 了css新样式:控制一行一行的文本如果太长,就用省略号显示:样式如下: .myStyle{width:160px;height:50px;line-height:50px;border:4px solid #eee; white-space:nowrap;/*强制文本在一行...
分类:
其他 时间:
2015-10-13 20:47:19
收藏:
0 评论:
0 赞:
0 阅读:
253
1、bin/hadoop fs -ls /查看hdfs根目录下的文件2、bin/hadoop fs -ls /user查看user下文件/就是根目录的意思。
分类:
其他 时间:
2015-10-13 20:47:09
收藏:
0 评论:
0 赞:
0 阅读:
214
---恢复内容开始---数据库 增 删 改 查 这是数据库中做的最多的inster delete update select 在数据库中创建和删除表(create table 和 drop table)常用的关键字 还有where, order by ,group by 和having,limitc...
分类:
数据库技术 时间:
2015-10-13 20:46:59
收藏:
0 评论:
0 赞:
0 阅读:
288
什么是团队,团队最少也要有三个人,因为一个人只能称作个体,两个人则只是相互支撑,而三个人便可以构成一个小团队了,这样便有了团队的一些基本特性:主从,监督和责任。一个人或者两个人不是说不可以开发软件,只是在开发过程中你自己或者说另一个人都非常明白要作什么,也心甘情愿的为之努力,然而到了三个人的时候,....
分类:
其他 时间:
2015-10-13 20:46:49
收藏:
0 评论:
0 赞:
0 阅读:
291
1、Math.Round(0.333333,2);//按照四舍五入的国际标准2、 double dbdata=0.335333; string str1=String.Format("{0:F}",dbdata);//默认为保留两位3、 float i=0.333333; i...
分类:
Windows开发 时间:
2015-10-13 20:46:39
收藏:
0 评论:
0 赞:
0 阅读:
340