2、类Role 和Function类
Fole:
public class Role {
private int id;
private String name;
private Set functions = new HashSet(0);
//get…set
}
Function:
public class Function {
private int id;
pri...
分类:
Web程序 时间:
2016-04-21 11:49:19
阅读次数:
143
vimperi.c#include<stdio.h>intmain(){intseason=0;printf("请输入阶段:");scanf("%d",&peri);switch(peri%4){case0:printf("第一阶段\n");break;case1:printf("第二阶段\n");break;case2:printf("第三阶段\n");break;case3:printf("第四阶段\n");break;default:pri..
分类:
其他好文 时间:
2016-04-21 07:35:45
阅读次数:
130
一、java语言的特性:面向对象、多线程、与平台无关、简单、高效、安全、健壮、可移植、解释性、动态、高性能等 面向对象的基本特征:封装、多态、继承 封装:把客观存在的事物封装成一个抽象的类,把成员变量(事物的属性)和成员方(事物的行为)法封装在类中。通过四种修饰符public、protect、pri ...
分类:
编程语言 时间:
2016-04-19 19:29:38
阅读次数:
255
要想修改CButton类按钮背景颜色和文字颜色,必须利用自绘方法对按钮进行重新绘制。这可以通过定义一个以CButton为基类的新按钮类来实现。以下为具体的实现方法:方法一:加入一个新类,类名:CButtonEx,基类:CButton。在头文件 CButtonEx.h 中加入以下变量和函数定义:pri ...
分类:
其他好文 时间:
2016-04-18 01:06:52
阅读次数:
377
[root@svr7bin]#catlottery.c#include<stdio.h>#include<stdlib.h>#include<time.h>intmain(){intlottery[7]={},num=0;srand(time(0));for(num=0;num<=6;num++){ lottery[num]=rand()%36+1;}for(num=0;num<=6;num++){ printf("%d",lottery[num]); }pri..
分类:
其他好文 时间:
2016-04-17 23:26:17
阅读次数:
193
前几天写了一个仿qq5.0的效果
继承 HorizontalScrollView实现水平滑动,内容区域是一个ListView上下滑动
目前是没有滑动冲突但是,我想在左边菜单栏显示的时候,内容区域的ListView不能上下滑动
外部拦截法解决滑动冲突
声明成员变量:
/**
* 处理滑动冲突的属性
*/
private int mLastIntercepX = 0;
pri...
分类:
其他好文 时间:
2016-04-16 19:20:54
阅读次数:
163
将N久的文档总结的各种杂七杂八的问题放这里下,预防丢失,,, Q0.支付宝rsa_private read error : private key is NULL错误 解决方法: a.在RSADataSigner.m文件中 搜索代码 [result appendString:@" BEGIN PRI ...
分类:
其他好文 时间:
2016-04-14 19:27:41
阅读次数:
197
本周的作业,是“软件测试基础”教材 ExerciseSection2.3 的课后习题。 题目要求,用下面的方法printPrimes()完成相应问题。 代码如下: (a) 为printPrimes()方法画控制流图。 (b) 考虑测试用例t1=(n=3)和t2=(n=5)。即使这些测试用例游历pri ...
分类:
其他好文 时间:
2016-03-30 06:54:54
阅读次数:
139
以上是Test1类,有个private的t1,值为1,给了get/set方法。 以上,Test2继承了Test1,也给了一个t1属性,但值为2。 输出结果为: 11 Test2继承了Test1,也给了一个t1属性,但值为2,提供了get/set方法。 输出结果: 12 结论:子类没有继承父类的pri ...
分类:
编程语言 时间:
2016-03-29 00:38:59
阅读次数:
408
# python study note_1# victor# 2016.03.27# python 基础1. 标准输入输出1.1 输出: print()在print()的括号中加上字符串,就可以向屏幕输出指定的文字. >>> print("hello world!") hello world!pri ...
分类:
编程语言 时间:
2016-03-27 23:44:33
阅读次数:
261