- 博客(8)
- 收藏
- 关注
原创 Annotation
Annotation 注解public interfaceAnnotationa) Annotation是一个接口b) 所有使用@interface 自定义的注解都继承于java.lang.annotation.Annotationc) 如果有接口extends Annotation,那么该接口依旧是接口,这和注解没有任何关系public interface Person
2015-01-25 23:11:53 263
原创 C++ 简单的学生信息存储系统
//学生信息系统//author 王炳华#include #include #include #include #include struct student{ std::string userid; std::string username; char sex;};const int BARLENGTH = 50;const int FULLPERCENT =
2014-10-02 16:57:42 491
原创 C语言实现组合数学 邻位互换生成算法
#includetypedef struct Element{ //向左为1 向右为0 bool direction; //活动状态为1 非活动状态为0 bool isActive; int data;} ele;void swap(ele *a,ele *b){ ele temp = {0,0,0}; temp = *a; *a = *b; *b = temp;
2014-09-26 15:14:23 328
原创 使用C语言读取bmp文件数据
/***2014/9/24 02:23*读取bmp图片信息.cpp*author:王炳华*运行此文件,在同目录下存放一个名为dog.bmp的图片,格式必须为bmp*/#include#include#define BMPTYPE 19778bool isBMP(FILE *F);int multiply_2(int i);void HeaderPartLenght(FI
2014-09-25 00:52:22 761
原创 组合数学 字典序法生成序列C语言实现
#includeint main(void){ int a[4] = {1,2,3,4}; int n = 4; int i,k = 0; int max; int temp = 0; for(i = 0;i < n;i++) { printf("%d ",a[i]); } printf("->"); while(1) { max = 0; k = 0;
2014-09-24 16:08:23 441
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人