#include void main(){ int i,j,k; for (i=1;i<6;i++) { for(k=0;k<5-i;k++) { printf(" "); } for (j=0;j<2*i-1;j++) { pri...
分类:
其他好文 时间:
2014-08-16 09:39:00
阅读次数:
176
private :本类访问;Default :默认,同包访问。Protected:同包访问+子类访问Public :所有均可访问。Private和Public都好说,Default和Protected的区别在于:外包的子类,Default是不能访问的,而Protected确可以访问。问题:1 Pri...
分类:
其他好文 时间:
2014-08-15 12:24:18
阅读次数:
206
PHP Array 函数定义和用法array_shift() 函数删除数组中的第一个元素,并返回被删除元素的值。注释:如果键是数字的,所有元素都将获得新的键,从 0 开始,并以 1 递增带有数字键:"Dog",1=>"Cat",2=>"Horse");echo array_shift($a);pri...
分类:
Web程序 时间:
2014-08-14 10:37:28
阅读次数:
236
请输入一个长方形的宽和高(正整数),请打印出它的边长和面积。#include void main(){ int l; // 宽 int high; // 高 int c; //边长 int s; //面积 pri...
分类:
其他好文 时间:
2014-08-13 00:27:44
阅读次数:
253
#include //#include int main(){ int N; scanf("%d",&N); int i,num,a[1005]={0}; num=0; while(N--) { scanf("%d",&i); if(a[i]==0) { a[i]=1; num++; } } pri...
分类:
其他好文 时间:
2014-08-11 14:25:32
阅读次数:
185
题意:很清楚不解释。
策略:如题, 就是个简单的母函数的改变.
这道题做了好久,才明白是那有毛病,还是理解的不够深刻。
AC代码:
#include
#include
int c1[155], c2[155];
int pri[150] = {3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 7...
分类:
其他好文 时间:
2014-08-09 18:50:48
阅读次数:
177
/**
*过程执行器
*
*@authorleizhimin2014/8/717:15
*/
publicclassTest{
publicstaticvoidmain(String[]args){
dotask(newTask(0));
System.out.println("------------------");
dotask(newTask(2));
System.out.println("------------------");
dotask(newTask(4));
}
pri..
分类:
其他好文 时间:
2014-08-08 18:28:17
阅读次数:
250
JAVA特点:语法简单,学习容易功能强大,适合各种应用开发:J2SE/J2ME/J2EE面向对象,易扩展,易维护容错机制好,在内存不够时仍能不崩溃、不死机强大的网络应用功能跨平台:JVM,字节码两个命令:javac helloworld.java:将Java文件编译为字节码的.class文件java...
分类:
编程语言 时间:
2014-08-05 18:38:59
阅读次数:
265
SecurityInterceptor实现spring mvc 框架的结构在访问控制@Controller之前的权限拦截,具体实现方法,增加总权限控制器public class SecurityInterceptor extends HandlerInterceptorAdapter{ pri...
分类:
编程语言 时间:
2014-08-04 20:57:47
阅读次数:
276
内容: 两数之和 输入说明:一行两个整数,长整型以内 输出说明:一行一个整数 输入样例: 若题目没有特别说明,则应该以多组测试数据方式读取,或者参考a001。2000 9输出样例 :2009#include int main(){ int a,b; scanf("%d %d",&a,&b); pri...
分类:
其他好文 时间:
2014-08-02 15:11:53
阅读次数:
247