会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Orangpetofi
博客园
首页
新随笔
联系
订阅
管理
2023年6月8日
实验7
摘要: 4. 1 #include <stdio.h> 2 int main() 3 { 4 char ch; 5 int count=0; 6 //open file 7 FILE *fp; 8 9 fp = fopen("data4.txt", "r"); 10 11 if(fp == NULL) 12
阅读全文
posted @ 2023-06-08 17:07 Orangpetofi
阅读(21)
评论(0)
推荐(0)
2023年5月25日
实验6
摘要: TASK4 1 #include <stdio.h> 2 #include<string.h> 3 #define N 100 4 5 typedef struct { 6 char num[10]; // 学号 7 int s1; // 期末成绩 8 int s2; // 平时成绩 9 doubl
阅读全文
posted @ 2023-05-25 17:22 Orangpetofi
阅读(18)
评论(0)
推荐(0)
2023年5月4日
实验5
摘要: 1.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", x
阅读全文
posted @ 2023-05-04 20:06 Orangpetofi
阅读(24)
评论(0)
推荐(0)
2023年4月13日
实验4
摘要: 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", sizeof(i
阅读全文
posted @ 2023-04-13 20:58 Orangpetofi
阅读(19)
评论(0)
推荐(0)
2023年3月30日
230330实验三
摘要: 实验1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void print_text(int line, int col, char tex
阅读全文
posted @ 2023-03-30 20:25 Orangpetofi
阅读(40)
评论(0)
推荐(0)
2023年3月17日
实验二
摘要: 任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main () { int number ,i ; srand (time(0));
阅读全文
posted @ 2023-03-17 16:19 Orangpetofi
阅读(34)
评论(0)
推荐(0)
2023年3月3日
实验一 20230302
摘要: #include <stdio.h> int main() { printf(" 0 \n") ; printf("<H>\n") ; printf("I I\n") ; return 0 ; } #include <stdio.h> int main() { printf(" 0 \n") ; p
阅读全文
posted @ 2023-03-03 17:23 Orangpetofi
阅读(27)
评论(0)
推荐(0)
公告
点击右上角即可分享