2017年3月23日

摘要: 阅读全文
posted @ 2017-03-23 11:36 160809311王重阳 阅读(77) 评论(0) 推荐(0) 编辑

2017年3月15日

摘要: 阅读全文
posted @ 2017-03-15 11:53 160809311王重阳 阅读(103) 评论(0) 推荐(0) 编辑

2016年12月16日

摘要: #include//定义结构体类型 struct student{ char number[50],name[50],gender[50],dept[50]; int age,phonenum,score; }; int main() { return 0; } #include struct student { char sno[10]; ... 阅读全文
posted @ 2016-12-16 08:59 160809311王重阳 阅读(1169) 评论(2) 推荐(0) 编辑

2016年12月9日

摘要: #include void sum(int *p,int n) { int a[10]; int sum=0; int i; for (i=0;i//第三题 创建存储空间 #include int main() { int a[10]; int *p=(int *)malloc(10*sizeof(int)); int i; printf("请输入10... 阅读全文
posted @ 2016-12-09 00:52 160809311王重阳 阅读(397) 评论(1) 推荐(0) 编辑

2016年11月24日

摘要: #include #include void aaa() { char a[100]; int length,j,i,temp; printf("请输入:"); scanf("%s",a); length=strlen(a); for(j=0;j #include void aaa() { char a[100]; int ... 阅读全文
posted @ 2016-11-24 23:12 160809311王重阳 阅读(313) 评论(1) 推荐(0) 编辑

2016年11月17日

摘要: #include//关于x轴旋转的乘法表 int main() { int b[10][10]; int i,j; for(i=8;i>-1;i--) { for(j=8;j>-1;j--) { b[i][j]=(i+1)*(j+1); } } for(i=8;i>-1;i... 阅读全文
posted @ 2016-11-17 22:15 160809311王重阳 阅读(331) 评论(1) 推荐(0) 编辑

2016年11月11日

摘要: #include #include int main() { char name[0]; int length,i,a[26]={0}; printf("输入自己名字拼音:"); scanf("%s",name); length=strlen(name); for(i=0;i int main()//数组逆序存放输出 { int a[10... 阅读全文
posted @ 2016-11-11 12:53 160809311王重阳 阅读(219) 评论(1) 推荐(0) 编辑

2016年11月4日

摘要: #include int main() { int x,i,a,sum=0; printf("你需要输入几个数:"); scanf("%d",&x); for(i=1;i//求圆柱体体积 double y; void cylinder(double r,double height) { y=3.14*r*r*height; } int main() {... 阅读全文
posted @ 2016-11-04 12:42 160809311王重阳 阅读(117) 评论(1) 推荐(0) 编辑

2016年10月13日

摘要: #include//输入三个数有小到大排序 int main() { int x; int y; int z; printf("输入三个整数:"); scanf("%d %d %d",&x,&y,&z); if(xz) printf("按从小到大排序为:%d %d %d\n",x, z, y); } ... 阅读全文
posted @ 2016-10-13 22:43 160809311王重阳 阅读(105) 评论(1) 推荐(0) 编辑

2016年10月9日

摘要: #include #include #include int main()//猜数游戏 { int count=0,flag,mynumber,yournumber; srand(time(0)); mynumber=rand()%100+1; flag=0; while(countmynumber) printf("To... 阅读全文
posted @ 2016-10-09 20:56 160809311王重阳 阅读(164) 评论(0) 推荐(0) 编辑

导航