- 博客(4)
- 收藏
- 关注
原创 图形 --函数调用
#include <stdio.h>#include <stdlib.h>#include<math.h>void rectangle(){ float wide,high,c,s; scanf("%f%f",&wide,&high); c=2*(wide+high); s=wide*high; printf("宽为...
2018-07-07 16:59:36 277
原创 简单的加密解密
#include <stdio.h>#include <stdlib.h>#define KEY 11 //偏移量int encrypt(char password[])//加密{ int i=0; int count = strlen(password); for(;i<count;i++) { password[i]=pas...
2018-05-23 20:13:35 733
转载 输入一年中的某天在这一年中是第几天
#include <stdio.h>int Fact(int year,int month,int day){ int sum=0; int a[2][12]={{0,31,59,90,120,151,181,212,243,273,304,334}, {0,31,60,91,121,152,182,213,244,274,305,335}...
2018-05-23 19:38:28 247
原创 宏定义——冒泡排序
#include <stdio.h>#include <stdlib.h>#define N 5int main(){ int i,j,t; int a[N]; printf("请输入五个数字:"); for(i=0;i<N;i++) { scanf("%d",&a[i]); } for(i=0;i<...
2018-04-18 22:48:38 334 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人