2014年12月9日

extjs Date的使用

摘要: 转载!!!Ext.Date是一个单例类,封装了一系列日期操作函数,扩展JavaScript Date的功能,下面列出一些常用的功能。Ext.Date.add(date, interval, value) 给date增加或减少时间,这个函数不改变原有Date对象的值,而是返回一个新的Date对象。Ex... 阅读全文

posted @ 2014-12-09 16:30 嘘寒问暖 阅读(2199) 评论(0) 推荐(0) 编辑

2014年12月8日

c语言 金字塔

摘要: #include int main(){int n;int i,j;printf("输入金字塔层数:"); scanf("%d",&n);for(i=1;i=1;--j)printf(" %d", j);printf("\n");}return 0;} 阅读全文

posted @ 2014-12-08 11:12 嘘寒问暖 阅读(1109) 评论(0) 推荐(0) 编辑

2014年12月2日

c语言 结构体动态创建

摘要: 1 #include 2 #include 3 struct Student 4 { 5 int num; //学号 6 int total; //总分 7 char name[20]; //姓名 8 float score[3]; //3个课目的分数 9 };1... 阅读全文

posted @ 2014-12-02 12:32 嘘寒问暖 阅读(9127) 评论(0) 推荐(0) 编辑

2014年12月1日

c语言 链表使用示例

摘要: 1 #include 2 #include 3 #include 4 typedef struct list{ 5 struct list *next; 6 char name[30];//用户名称 7 char addr[50];//地址 8 ch... 阅读全文

posted @ 2014-12-01 09:33 嘘寒问暖 阅读(4979) 评论(0) 推荐(3) 编辑

2014年11月25日

c语言乘法表4种输出

摘要: 1 #include 2 int main() 3 { 4 int i,j; 5 //左下角。 6 for (i=1;i=j) printf("%d×%d=%-2d ",j,i,j*i); 10 putchar('\n');11 }12 //左上角。13 putchar('\n... 阅读全文

posted @ 2014-11-25 09:56 嘘寒问暖 阅读(657) 评论(0) 推荐(0) 编辑

2014年11月17日

Extjs 基础使用(一)

摘要: 1 //显示一个Ext样式的标题和内容。 2 //Viewport对象简单认为就是浏览器的整个窗口[渲染于body元素] 3 //Extjs中不建议使用new create()方法可以实现对象的动态加载 4 /*Ext.create('Ext.Viewport', { 5 ... 阅读全文

posted @ 2014-11-17 17:20 嘘寒问暖 阅读(204) 评论(0) 推荐(0) 编辑

PHP 生成验证码 (二)

摘要: 1 阅读全文

posted @ 2014-11-17 10:16 嘘寒问暖 阅读(105) 评论(0) 推荐(0) 编辑

2014年11月7日

PHP 生成验证码

摘要: code.php: 1 调用的html: 1 2 3 图片验证实例 4 6 7 8 9 此例为验证实例10 11 验证码:12 13 14 15 16 17 18 阅读全文

posted @ 2014-11-07 12:02 嘘寒问暖 阅读(297) 评论(0) 推荐(0) 编辑

2014年11月5日

类的简单运算

摘要: 1 #include 2 using namespace std; 3 4 class rectangle 5 { 6 private: 7 int length,width; 8 public: 9 rectangle(){};10 rectangle(int a,... 阅读全文

posted @ 2014-11-05 15:51 嘘寒问暖 阅读(215) 评论(0) 推荐(0) 编辑

c语言读写文件操作

摘要: 1 #include 2 #include 3 #include 4 void writefile() 5 { 6 FILE *fp; 7 fp = fopen("e://ss.txt","w+"); 8 if(fp == NULL) 9 {10 ... 阅读全文

posted @ 2014-11-05 15:37 嘘寒问暖 阅读(164) 评论(0) 推荐(0) 编辑

导航