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

2023年6月15日

实验七
摘要: 试验任务4 源码 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 5, M = 100; int main() { char ch[M]; int n = 0; FILE *fp; fp = fopen 阅读全文
posted @ 2023-06-15 08:36 邵远 阅读(6) 评论(0) 推荐(0)
 
 

2023年5月31日

实验六
摘要: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char level[ 阅读全文
posted @ 2023-05-31 21:20 邵远 阅读(18) 评论(0) 推荐(0)
 
 

2023年5月10日

实验五
摘要: 试验任务1 task1.1 源码 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for (i = 0; i < N; ++i) p 阅读全文
posted @ 2023-05-10 21:28 邵远 阅读(4) 评论(0) 推荐(0)
 
 

2023年4月19日

实验四
摘要: 实验1_1 源码 #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = %d\n", si 阅读全文
posted @ 2023-04-19 22:19 邵远 阅读(6) 评论(0) 推荐(0)
 
 

2023年4月5日

实验三
摘要: 实验任务1 源码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); v 阅读全文
posted @ 2023-04-05 19:38 邵远 阅读(17) 评论(0) 推荐(0)
 
 

2023年3月22日

实验二
摘要: 实验任务1 源码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time 阅读全文
posted @ 2023-03-22 22:19 邵远 阅读(15) 评论(0) 推荐(0)
 
 

2023年3月5日

实验一
摘要: 实验1_1 源码 //打印一个字符小人 #include <stdio.h> #include <stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H 阅读全文
posted @ 2023-03-05 19:27 邵远 阅读(18) 评论(0) 推荐(0)
 
 

公告


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