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

KFD666

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2023年6月8日

实验7

摘要: task4. #include <stdlib.h> #include <stdio.h> int main() { FILE *fp; int i=0; char ch; fp=fopen("data4.txt","r"); if(fp==NULL) {printf("fail\n");retur 阅读全文

posted @ 2023-06-08 16:33 肯德鸭 阅读(18) 评论(0) 推荐(0)

2023年5月25日

实验6

摘要: task4. #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char 阅读全文

posted @ 2023-05-25 17:20 肯德鸭 阅读(19) 评论(0) 推荐(0)

2023年5月5日

实验5

摘要: 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) printf("%d 阅读全文

posted @ 2023-05-05 22:12 肯德鸭 阅读(17) 评论(0) 推荐(0)

2023年4月15日

实验4

摘要: task1.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", siz 阅读全文

posted @ 2023-04-15 19:40 肯德鸭 阅读(15) 评论(0) 推荐(0)

2023年3月31日

实验三

摘要: task1. 实验代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]) 阅读全文

posted @ 2023-03-31 13:09 肯德鸭 阅读(20) 评论(0) 推荐(0)

2023年3月17日

实验2

摘要: 实验2 task1. 实验代码 #include<stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; sran 阅读全文

posted @ 2023-03-17 11:22 肯德鸭 阅读(25) 评论(0) 推荐(0)

2023年3月3日

实验1

摘要: task1-1.c #include <stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf(" o\n"); printf("<H>\n"); printf("I I\n"); return 0 阅读全文

posted @ 2023-03-03 11:06 肯德鸭 阅读(12) 评论(0) 推荐(0)

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