会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Wyx#
博客园
首页
新随笔
联系
订阅
管理
2019年12月27日
实验七
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id;
阅读全文
posted @ 2019-12-27 21:25 Wyx#
阅读(89)
评论(5)
推荐(0)
2019年12月24日
实验六
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;
阅读全文
posted @ 2019-12-24 14:55 Wyx#
阅读(143)
评论(2)
推荐(0)
实验六
摘要: 恢复内容开始 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int
阅读全文
posted @ 2019-12-24 14:54 Wyx#
阅读(65)
评论(1)
推荐(0)
2019年12月18日
实验五
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i
阅读全文
posted @ 2019-12-18 01:23 Wyx#
阅读(145)
评论(3)
推荐(0)
2019年12月2日
实验4
摘要: #include <stdio.h>#include <stdlib.h> #define N 1000int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag=1; for(i=2;i<j;i++) if
阅读全文
posted @ 2019-12-02 23:34 Wyx#
阅读(98)
评论(2)
推荐(0)
2019年11月17日
实验3
摘要: /* 编程找出5个整数的最大数和最小数 《C语言程序设计教程学习指导》p122实验内容(3) */ #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: "
阅读全文
posted @ 2019-11-17 22:32 Wyx#
阅读(158)
评论(2)
推荐(0)
2019年11月3日
吴云行的实验二
摘要: //p1改错#include int main() { double x,y; char c1,c2,c3; int a1,a2,a3; scanf("%d%d%d",&a1,&a2,&a3); printf("%d %d %d\n",a1,a2,a3); scanf("%c%c%c",&c1,&c2,&c3); ...
阅读全文
posted @ 2019-11-03 17:35 Wyx#
阅读(214)
评论(4)
推荐(0)
2019年10月17日
吴云行的作业
摘要: //整数相除,116-1 #include<stdio.h> int main() { int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } 116-2 #i
阅读全文
posted @ 2019-10-17 22:48 Wyx#
阅读(205)
评论(0)
推荐(0)
2019年10月16日
作业
摘要: //整数相除,116-1#include<stdio.h>int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0;} 116-2 #inclu
阅读全文
posted @ 2019-10-16 23:31 Wyx#
阅读(278)
评论(0)
推荐(0)
求两个整数的乘积
摘要: // 求两个整数的乘积#include<stdio.h>int product (int,int);int main(void) { int x,y,s; scanf("%d %d",&x,&y); s = product(x,y); printf("The mul is:%d",s); retur
阅读全文
posted @ 2019-10-16 23:26 Wyx#
阅读(798)
评论(0)
推荐(0)
公告