#include
#include
#include
using namespace std;
int Grial(int n)
{
int a=n<<3;
int b=a&(-n);
int temp;
a=a^(-n); while(b!=0)
{
b=b<<1;
te...
分类:
编程语言 时间:
2015-08-11 23:21:23
阅读次数:
135
使用maven web项目是使用maven构建项目的基础工作,在构建过程中有一些注意事项,在此篇文章中按照步骤的形式提示出来,希望对新手有帮助,笔者也是新手。...
分类:
Web程序 时间:
2015-08-11 23:22:01
阅读次数:
244
条款一 了解模板类型推断基本情况首先定义函数模板和函数调用的形式如下,在编译期间,编译器推断T和ParamType的类型,两者基本不相同,因为ParamType常常包含const、引用等修饰符templatevoid f(ParamType param); // 函数模板形式f(expr); // ...
分类:
编程语言 时间:
2015-08-11 23:22:44
阅读次数:
250
I recently came across an interesting question on StackOverflow regarding Fragment instantiation:What is the difference between new MyFragment() and M...
1690: [Usaco2007 Dec]奶牛的旅行Time Limit:5 SecMemory Limit:64 MBSubmit:700Solved:363[Submit][Status][Discuss]Description作为对奶牛们辛勤工作的回报,Farmer John决定带她们去附近的...
分类:
其他好文 时间:
2015-08-11 23:22:44
阅读次数:
216
#includeusing namespace std;int maxsum(int *list,int i){ if(list==NULL||imaxsum) maxsum=cursum; } return maxsum;}int main(){ in...
分类:
编程语言 时间:
2015-08-11 23:22:34
阅读次数:
174
java中方法的重载(overload) 特点:1.方法必须在同一个类中 2. 方法名必须相同 3.方法参数个数不同或者参数类型不同或者参数顺序不同
分类:
其他好文 时间:
2015-08-11 23:21:01
阅读次数:
130
jQuery为开发插件提拱了两个方法,分别是:jQuery.fn.extend(object);jQuery.extend(object);jQuery.extend(object); 为扩展jQuery类本身.为类添加新的方法。jQuery.fn.extend(object);给jQuery对象添...
分类:
Web程序 时间:
2015-08-11 23:21:29
阅读次数:
163
刚学习了这三种特殊权限,文档描述的比较清楚。转移保存^^文件的权限有rwx 这三个读、写、运行的权限。但在linux中却有些文件权限不同。如:[root@www ~]# ls -ld /tmp ; ls -l /usr/bin/passwddrwxrwxrwt 7 root root 4096 Se...
分类:
其他好文 时间:
2015-08-11 23:19:29
阅读次数:
124
package com.example.firstpg.firstpg;import android.support.v7.app.ActionBarActivity;import android.os.Bundle;import android.util.Log;import android.vi...
分类:
移动开发 时间:
2015-08-11 23:20:51
阅读次数:
173
#include #include #include #include #include #include #include #include #include #include #include //#include using namespace std; typedef long long L...
分类:
其他好文 时间:
2015-08-11 23:20:08
阅读次数:
158
不知道大家注意到了没有,Google和Baidu网页的HTML源代码是混合在一起的。HTML代码混合在一起,出发点是为了减小网页体积,从而加快网页加载速度。 写个函数把网页HTML源代码的换行符和空格过滤掉其实并不难,我这里是写了个基类,在asp.net编程时,页面只要继承这个基类,那么输出的HTM...
分类:
Web程序 时间:
2015-08-11 23:19:19
阅读次数:
116
分析OnlineJudge源代码,里面涉及注解、反射、代理等知识,基本理解了整体设计思路及各部分代码的功能,动态代理proxy一般使用在实现了接口的类上,如果类没实现接口,也可以使用proxy,获取动态代理对象,会实现它所表示的实际对象的接口,proxy可以使用在接口级别上,这样可以通过prox.....
分类:
其他好文 时间:
2015-08-11 23:20:26
阅读次数:
118
1、安装composer http://www.phpcomposer.com/ 这个是中文网址里边有教程,但是由于被墙的缘故,可以通过下边这个链接下载Windows安装包 http://docs.phpcomposer.com/00-intro.html#Downloading-the-Compo...
分类:
其他好文 时间:
2015-08-11 23:19:08
阅读次数:
191
javascript和其他编程语言相比比较随意,所以javascript代码中充满各种奇葩的写法,有时雾里看花;当然,能理解各型各色的写法也是对javascript语言特性更进一步的深入理解。( function(){…} )()和( function (){…} () )是两种javascript...
分类:
编程语言 时间:
2015-08-11 23:18:47
阅读次数:
194