会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
二螯
实验七
摘要: Part 1 ex1-2 更改后结果仍然正确 #include <stdio.h> #include <stdlib.h> #include<string.h> #define N 10 typedef struct student{ int num; char name[20]; int scor
阅读全文
posted @ 2019-12-28 16:54 二螯
阅读(88)
评论(3)
推荐(0)
实验6
摘要: 1-2 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int sco
阅读全文
posted @ 2019-12-25 00:25 二螯
阅读(139)
评论(3)
推荐(0)
实验五
摘要: 2-1 二分查找算法及编程应用 // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int
阅读全文
posted @ 2019-12-16 14:19 二螯
阅读(163)
评论(3)
推荐(0)
实验四
摘要: 一 //寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n
阅读全文
posted @ 2019-12-02 00:05 二螯
阅读(98)
评论(3)
推荐(0)
实验三
摘要: Part 2 #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; m
阅读全文
posted @ 2019-11-18 23:24 二螯
阅读(123)
评论(3)
推荐(0)
实验2 格式化输入输出和分支语句
摘要: Part1 /* 《C语言程序设计教程学习指导》p118 实验内容(1) 这是一个常用格式控制符使用示例 运行程序,观察行结果,对照每一行printf()中的格式控制符,理解其功能和用法 */ #include <stdio.h> int main() { int x=1234; float f=1
阅读全文
posted @ 2019-11-05 19:10 二螯
阅读(373)
评论(3)
推荐(0)
实验1 C语言开发环境使用和数据类型、运算符、表达式
摘要: #include int main() { printf("201983270545"); return 0; } #include int main() { printf("Hello, Mars"); return 0; } #include int product(int,int); int main(void) { ...
阅读全文
posted @ 2019-10-20 16:38 二螯
阅读(136)
评论(0)
推荐(0)
导航
博客园
首页
联系
订阅
管理
公告