码迷,mamicode.com
首页 >  
搜索关键字:php static self    ( 139138个结果
复习java基础第二天(异常处理)
一、常见的异常类型:public class TestException { public static void main(String[] args) { int i = 10; //数学异常: java.lang.ArithmeticE...
分类:编程语言   时间:2014-05-10 02:17:04    阅读次数:486
FZU Problem 2034 Password table (简单模拟题)
这种简单题做了好长时间,我是不是有点逗?地址:http://acm.fzu.edu.cn/problem.php?pid=2034不解释了,自己看吧,练手的好题上个代码吧#include #include #include int main(){ int s,n,m,i,j,k,t; c...
分类:其他好文   时间:2014-05-10 02:14:11    阅读次数:328
static和public
static:静态。可以设置:静态类、静态变量、静态方法。没有使用static修饰的成员为实例成员。静态成员的使用:通过类名。1。不加static修饰的成员是对象成员,归每个对象所有。2。加static修饰的成员是类成员,可以由一个类直接调用,为所有对象共有。用static关键字标识的程序元素是静态...
分类:其他好文   时间:2014-05-10 02:12:44    阅读次数:296
hdu 1598 find the most comfortable road
http://acm.hdu.edu.cn/showproblem.php?pid=1598 1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 const int inf=1<<30; 7...
分类:其他好文   时间:2014-05-05 10:53:38    阅读次数:344
hdu 1599 find the mincost route
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3 #include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:其他好文   时间:2014-05-05 10:52:15    阅读次数:315
php函数
function Http_num() //浏览计数 在同目录里建立一个count文件,访问网页次数计算结果保存在这里count文件里{ $hanld=fopen(".count.txt","a"); fclose($hanld); ...
分类:Web程序   时间:2014-05-05 10:44:20    阅读次数:406
Android项目---TouchListener
public static interfaceView.OnTouchListenerandroid.view.View.OnTouchListenerKnown Indirect SubclassesAutoScrollHelper,ListViewAutoScrollHelper,ZoomBut...
分类:移动开发   时间:2014-05-05 10:24:09    阅读次数:515
HDU 3998 Sequence(经典问题,最长上升子序列)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3998解题报告:求一个数列的最长上升子序列,并求像这样长的不相交的子序列最多有多少个。我用的是最简单的方法,就是每次求最长上升子序列,然后每次将求得的子序列从数列里面删掉,然后再对剩下的数列求最长上升子序...
分类:其他好文   时间:2014-05-05 10:04:28    阅读次数:236
1.扩展方法2.接口的隐式实现和显式实现
1.扩展方法:必须写在一个静态类里面,具体见代码:namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Student s = n...
分类:其他好文   时间:2014-05-05 09:47:04    阅读次数:431
PHP中的魔术方法总结
__construct, __destruct , __call, __callStatic,__get, __set, __isset, __unset , __sleep, __wakeup, __toString, __set_state, __clone and __autoload
分类:Web程序   时间:2014-05-05 09:38:23    阅读次数:488
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!