摘要: 1 /* 2 @author zengweilin 3 @2011/6/13 万年历 4 */ 5 #include "stdio.h" 6 #include "stdlib.h" 7 int isLeapYear(int); 8 int main(){ 9 /* i 月份前的空格数目, 10 year 用户输入的年份, 11 day 当前月份的天数, 12 year_start 循环小于year年份的变量, 13 per_year_day 年天数(区分闰年与非闰年), 14 */ 15 int i,year,day=1,year_start=0,per 阅读全文
posted @ 2011-06-17 23:10 KISS's blog 阅读(448) 评论(1) 推荐(1) 编辑
摘要: 1 /* 2 @2011/6/14 螺旋方阵 3 @author zengweilin 4*/ 5 #include "stdio.h" 6 #include "stdlib.h" 7 8 void widdershins(int); 9 void deasil(int); 10 11 int main(){ 12 int n; 13 printf("please input the value of n: "); 14 scanf("%d",&n); 15 while(n<=0) 16 { 17 p 阅读全文
posted @ 2011-06-17 22:09 KISS's blog 阅读(1054) 评论(2) 推荐(0) 编辑