
c
jw_mac
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c语言万年历 日历
/* * cal.c * * Created on: 2013-3-11 * Author: J.WANG */ #include <stdlib.h> #include <stdio.h> //三维数组存放日期,每年12月,日历中最多排6行(星期),每星期7天 int days[12][6][7]; //平年,闰年每个月的天数...原创 2013-03-12 09:48:27 · 322 阅读 · 0 评论 -
C语言十进制转任意进制
#include <stdio.h> #define M sizeof(unsigned int)*8 //进制转换 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>...原创 2013-05-04 19:08:29 · 889 阅读 · 0 评论 -
结构体,文件操作,指针,简单练习
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> #define SCORES 5 #define S 3 typedef struct { int num; char *name; char sex[2]; f...原创 2013-05-22 23:30:27 · 140 阅读 · 0 评论 -
指针 数组 结构体 练习
#include <stdio.h> #include <malloc.h> #include <stdlib.h> #include <stdbool.h> //简单数组存储 gcc下运行 //J.WANG 2013-6-8 typedef struct Arr{ int * data; //存储数组的第一个元素的地址 int...原创 2013-06-08 20:41:03 · 155 阅读 · 0 评论