2013年6月21日

摘要: #include #include #include #define false 0#define true 1typedef struct node{ int data; struct node * next;}NODE,* PNODE;PNODE create_list(int); //创建链表返回一个头节点void print_list(PNODE); //打印链表int isEmpty(PNODE); //判断链表是否为空PNODE revers(PNODE); //反转链表void revers2(PNODE); //反转链表void revers3(PNODE... 阅读全文
posted @ 2013-06-21 17:25 Jw.snow 阅读(247) 评论(0) 推荐(0) 编辑

2013年6月18日

摘要: Spring源代码解析(一):IOC容器:http://www.iteye.com/topic/86339Spring源代码解析(二):IoC容器在Web容器中的启动:http://www.iteye.com/topic/86594Spring源代码解析(三):Spring JDBC:http://www.iteye.com/topic/87034Spring源代码解析(四):Spring MVC:http://www.iteye.com/topic/87692Spring源代码解析(五):Spring AOP获取Proxy:http://www.iteye.com/topic/88187Sp 阅读全文
posted @ 2013-06-18 14:55 Jw.snow 阅读(144) 评论(0) 推荐(0) 编辑

2013年6月13日

摘要: #include <stdio.h>#include <malloc.h>#include <string.h>#include <time.h>//perm 参考C语言实例解析精粹 //如: 1 2 3 按2位组合列为: 12 13 21 23 31 32//如: A B C D 按2位组合列为: BA,CA,DA,AB,CB,DB,AC,BC,DC,AD,BD,CD//J.WANG 2013-6-13 23:17:21char *p;int main(){ void perm(int n,char *s); void permfor(char 阅读全文
posted @ 2013-06-13 23:44 Jw.snow 阅读(202) 评论(0) 推荐(0) 编辑

2013年6月12日

摘要: /* * cal.c * * Created on: 2013-3-11 * Author: J.WANG */#include <stdlib.h>#include <stdio.h>//三维数组存放日期,每年12月,日历中最多排6行(星期),每星期7天int days[12][6][7];//平年,闰年每个月的天数int ds[2][12] = { { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } };//标题c 阅读全文
posted @ 2013-06-12 12:35 Jw.snow 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#define M sizeof(unsigned int)*8//参考.C语言实例解析精粹//进制转换int trans(int n,int d,char *str){ char s[16]="0123456789ABCDEF"; int j,i=M; char buf[i+1]; buf[M]='\0'; if(d<2||d>16){ return 0; } while(n!=0){ buf[--i]=s[n%d]; n/=d; } for(j=0;... 阅读全文
posted @ 2013-06-12 12:31 Jw.snow 阅读(173) 评论(0) 推荐(0) 编辑
摘要: package Convert;public class Money { public static void main(String[] args) { int num = 1000100001; char un[] = { '零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖' };// 一级单位 char us[] = { '拾', '佰', '仟& 阅读全文
posted @ 2013-06-12 12:28 Jw.snow 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <string.h>#define SCORES 5#define S 3typedef struct { int num; char *name; char sex[2]; float score[SCORES]; float total;} STU;//输入n个学生的信息void initInfo(STU * st,int n);//保存n个学生文件void saveAsFile(STU * st,int n);/ 阅读全文
posted @ 2013-06-12 12:27 Jw.snow 阅读(275) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <malloc.h>#include <stdlib.h>#include <stdbool.h>//简单数组存储 gcc下运行//J.WANG 2013-6-8typedef struct Arr{ int * data; //存储数组的第一个元素的地址 int len; //数组的存储长度 int index; //有效元素个数} ARR;bool init(ARR *p,int n); //初始存储,p要初始对象的地址,n初始的长度bool append(ARR *p,int val); 阅读全文
posted @ 2013-06-12 12:26 Jw.snow 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 1.javascript代码<script type="text/javascript">//http://www.w3school.com.cn/ajax/index.aspvar xmlHttp;function getCN(obj){ var author = document.forms[0].u367766562624002.value; //中文值 author=encodeURI(author); author=encodeURI(author); //传送的值,2次转码。 try{ // Firefox, Opera 8.0+,... 阅读全文
posted @ 2013-06-12 12:17 Jw.snow 阅读(152) 评论(0) 推荐(0) 编辑

导航