会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
赧然的贼
博客园
首页
新随笔
联系
订阅
管理
2019年12月29日
实验七
摘要: Part1验证性实验 验证性实验2 // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct stud
阅读全文
posted @ 2019-12-29 23:38 赧然的贼
阅读(161)
评论(1)
推荐(0)
2019年12月22日
实验六
摘要: #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-22 17:40 赧然的贼
阅读(110)
评论(3)
推荐(0)
2019年12月16日
实验五
摘要: // 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; // 定义一维
阅读全文
posted @ 2019-12-16 19:59 赧然的贼
阅读(123)
评论(5)
推荐(0)
2019年12月1日
实验四
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf(
阅读全文
posted @ 2019-12-01 10:26 赧然的贼
阅读(90)
评论(3)
推荐(0)
2019年11月19日
实验三
摘要: // 一元二次方程求解 // 重复执行, 直到按Ctrl+D或Ctrl+E结束 // #include <math.h> #include <stdio.h> #include <stdlib.h> int main() { float a, b, c, x1, x2; float delta, r
阅读全文
posted @ 2019-11-19 23:39 赧然的贼
阅读(99)
评论(2)
推荐(0)
2019年11月5日
实验二
摘要: #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; printf("%d %d\n",
阅读全文
posted @ 2019-11-05 23:43 赧然的贼
阅读(129)
评论(4)
推荐(0)
2019年10月21日
实验一作业
摘要: #include<stdio.h> int main() { printf("201983270525") ; return 0; } #include<stdio.h> int main() { printf("火星的朋友们你们好"); return 0; } #include<stdio.h> int product(int,int); int main(void) { int x,y,s;
阅读全文
posted @ 2019-10-21 11:03 赧然的贼
阅读(96)
评论(0)
推荐(0)
2019年10月20日
实验一
摘要: #include int main() { printf("201983270525") ; return 0; }
阅读全文
posted @ 2019-10-20 16:32 赧然的贼
阅读(64)
评论(0)
推荐(0)
公告