在师哥师姐给我们传授考试系统的经验过程中,提到了Staic,而我对于static也是从未注意,但是从那天学姐给我们讲了static后,我发现这个单词真的很需要深刻的了解一下,下面我来说说我知道的Static。
使用特点
1、static意思是静态,可以修饰类、字段、属性、方法,标记为static的就不用创建实例对象调用了,可以通过类名直接点出来。例如...
分类:
其他 时间:
2014-03-12 01:34:27
收藏:
0 评论:
0 赞:
0 阅读:
452
JavaScript和DOM文档解析的顺序
总体上看,整个Web页面数据的解析处理模型是一个同步的过程,当在解析HTML文档时,一旦出现了标签,Web开发者期望JavaScript程序能够立即得到解析和执行,而HTML文档的解析流程就会被暂停,直到JavaScript脚本解析执行完毕后,才重新恢复原来的解析流程。当JavaScript脚本可以存放在HTML外部,并非采用嵌入式的脚本时,那么Web...
分类:
Web开发 时间:
2014-03-12 00:51:16
收藏:
0 评论:
0 赞:
0 阅读:
657
xenserver 推荐的方式是使用一个服务器之外的共享存储挂载iso文件。由于新买的服务器cpu与原有的池不兼容,所以暂时先使用本地存储的iso库。由于xcp主机默认的根分区只有4G的存储空间,一两个iso文件就会导致主机空间使用完,所以新添加了一个分区sda3并将其作为iso库的存储。
1 新建一个存放iso文件的目录
mkdir /isoImage
2 fdisk...
分类:
其他 时间:
2014-03-12 01:46:43
收藏:
0 评论:
0 赞:
0 阅读:
530
1、全局菜单关闭与打开
关闭:sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt
但是对于firefox,还需要在“扩展组件”-“扩展”里面把“global menu bar integration”这一项禁用
打开:sudo apt-get install appmenu-gtk appmenu-gtk3 appmenu-...
分类:
其他 时间:
2014-03-12 01:10:23
收藏:
0 评论:
0 赞:
0 阅读:
523
这题可以参考Zyearn的博客(斐波那契数列的几种计算机解法):
http://blog.csdn.net/zyearn/article/details/7878657
使用通项公式的方式,算法复杂度为o(1),应该是最快的。
先看下Fibonacci数列的定义:
使用通项公式的概念,可以得到:
使用矩阵计算可以得到:
...
分类:
其他 时间:
2014-03-12 00:24:07
收藏:
0 评论:
0 赞:
0 阅读:
581
shell编程之sed...
分类:
其他 时间:
2014-03-12 01:11:23
收藏:
0 评论:
0 赞:
0 阅读:
538
使用Flash TooL 对android手机进行刷机...
分类:
移动平台 时间:
2014-03-12 01:15:30
收藏:
0 评论:
0 赞:
0 阅读:
648
C++中的运算符重载——读书笔记...
分类:
编程语言 时间:
2014-03-12 00:55:24
收藏:
0 评论:
0 赞:
0 阅读:
618
Courses
Problem Description
Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that satisfies simultaneously the ...
分类:
其他 时间:
2014-03-12 01:15:56
收藏:
0 评论:
0 赞:
0 阅读:
532
导致Android/IOS崩溃的null----PHP和Android/IOS数据交互
如果Android或者IOS收到了null这种下发字段,会崩溃!!!这是最不能忍的,而我们的数据库由于刚开始的时候没有做好处理,导致很多时候会下发null,因此代码中经常会出现这样的临时修改方案:...
分类:
移动平台 时间:
2014-03-12 01:27:46
收藏:
0 评论:
0 赞:
0 阅读:
607
今天遇到一个结构体数组的定义错误,MDK编译器报错为:
error: expression must be a pointer to a complete object type
本以为是函数形参为指针,调的是结构体变量名而出错,以前遇到过这种调用错误。但是检查后发现并没有调用问题。结构体数组定义如下:
"func.c"中:
struct msg_param{
uint16_t ...
分类:
其他 时间:
2014-03-12 01:27:14
收藏:
0 评论:
0 赞:
0 阅读:
731
之前一直想写一下A*,K短路的模板,然后看到了这题,于是各种敲代码的欲望涌上来。
知道A*的人应该都知道可以用A*来求最短路,当终点节点第K次出队时,就是第K短路。
而A*的关键在于求估价函数,所以可以一遍反向SPFA求得终点到每个点的最短路,作为估价函数。【还是自己的模板比较好看】
#include
#include
#include
#include
#include
#incl...
分类:
数据库技术 时间:
2014-03-12 01:52:21
收藏:
0 评论:
0 赞:
0 阅读:
453
Pat1038代码
题目描述:
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such...
分类:
其他 时间:
2014-03-12 01:42:34
收藏:
0 评论:
0 赞:
0 阅读:
522
1、首先,关闭数据库,然后备份所有的数据文件,注意,包括:system表空间的文件,用户表空间的文件、undo表空间的文件。
2、登录数据库,然后,创建一个表data01,并插入数据,提交,创建表data02、data03,并插入数据,提交,同时归档当前日志。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area 106893721...
分类:
数据库技术 时间:
2014-03-12 00:31:52
收藏:
0 评论:
0 赞:
0 阅读:
627
题目:输入一个表示整数的字符串,把该字符串转换成整数并输出。
例如输入字符串"345",则输出整数345。
分析:
可以直接使用atoi函数, 但这个题目显然不希望你这么做
我们还是按照常规方法来做,比如整数字符串长度为n= strlen(str)。
最右边的为个数,往左依次是十位,百位等。
右边---左边
0 1 2 ...
比...
分类:
其他 时间:
2014-03-12 00:21:00
收藏:
0 评论:
0 赞:
0 阅读:
575
头文件:
#if !defined(AFX_WNDMAIN_H__143E8EA9_9690_4B57_A53F_95071AE2ECB8__INCLUDED_)
#define AFX_WNDMAIN_H__143E8EA9_9690_4B57_A53F_95071AE2ECB8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endi...
分类:
编程语言 时间:
2014-03-12 00:31:18
收藏:
0 评论:
0 赞:
0 阅读:
665
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].
The largest ...
分类:
其他 时间:
2014-03-12 00:20:28
收藏:
0 评论:
0 赞:
0 阅读:
468
YY's new problem
Time Limit: 12000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 3501 Accepted Submission(s): 984
Problem Description
Given a permutation P of 1 to N, YY wants to know whether there exists suc...
分类:
其他 时间:
2014-03-12 00:47:08
收藏:
0 评论:
0 赞:
0 阅读:
591
之前传过一个用window类实现的,但在实际项目中用多个window会出现一些不必要的冲突。所以用View重新实现一个。
例子:http://download.csdn.net/detail/qqmcy/7025253
ViewController.h
//
// ViewController.h
// 放大镜例子
//
// Created by 杜甲 on 14-3-10.
/...
分类:
其他 时间:
2014-03-12 00:46:40
收藏:
0 评论:
0 赞:
0 阅读:
400
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
The above elevation map is represented by ar...
分类:
移动平台 时间:
2014-03-12 01:31:21
收藏:
0 评论:
0 赞:
0 阅读:
491