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 阅读(290) 评论(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 阅读(181) 评论(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 阅读(309) 评论(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 阅读(278) 评论(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 阅读(398) 评论(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 阅读(165) 评论(0) 推荐(0)

导航