• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
陈什一
博客园 首页 新随笔 联系 订阅 订阅 管理

2020年12月31日

实验七
摘要: task1实验报告 已生成file2文本文件,可读; 修改后 d盘生成file3 ,可打开。 task2实验报告 若改为while语句,输出结果不变 但适用于不知道人数的统计 task3实验报告 file3.dat直观可读 task4实验报告 生成file4.dat 不可读 子任务: // 在生成f 阅读全文
posted @ 2020-12-31 12:46 陈什一 阅读(81) 评论(0) 推荐(0)
 
 

2020年12月22日

实验六
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; /*学生学号 */ char name[20]; /*学生姓名 */ char subject[2 阅读全文
posted @ 2020-12-22 14:44 陈什一 阅读(102) 评论(0) 推荐(0)
 
 

2020年12月17日

实验 5
摘要: task1: #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) { printf("%d: %d\ 阅读全文
posted @ 2020-12-17 09:21 陈什一 阅读(55) 评论(0) 推荐(0)
 
 

2020年12月6日

实验四
摘要: #include<stdio.h> #include<math.h> void fun(double a,double b,double c) { double x1,x2; double delta,real,imag; if(a==0) printf("not a quadratic equat 阅读全文
posted @ 2020-12-06 18:04 陈什一 阅读(74) 评论(0) 推荐(0)
 
 

2020年11月19日

实验三
摘要: #include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, 阅读全文
posted @ 2020-11-19 00:23 陈什一 阅读(116) 评论(0) 推荐(0)
 
 

2020年11月5日

实验二
摘要: 实验一 #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; } 注意从 阅读全文
posted @ 2020-11-05 07:34 陈什一 阅读(63) 评论(0) 推荐(0)
 
 

2020年10月20日

实验1 C语言开发环境使用和编程初体验
摘要: #include<stdio.h> int main(){ printf("202083290321\n"); printf("新学期新气象"); return 0; } 实验一截图 实验2 #include<stdio.h> int main (){ while (1) printf("不会吧") 阅读全文
posted @ 2020-10-20 16:39 陈什一 阅读(75) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3