会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qybceehs
博客园
首页
新随笔
联系
订阅
管理
2023年6月
实验7
摘要: 4 #include <stdio.h> #include<stdlib.h> #include<string.h> #define N 5 #define M 80 int main() { char ch[M]; int ch_counts = 0,n=0; FILE *fp; fp = fop
阅读全文
posted @ 2023-06-12 22:05 银桥
阅读(23)
评论(0)
推荐(0)
2023年5月
实验6
摘要: 实验任务4 #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char
阅读全文
posted @ 2023-05-30 21:00 银桥
阅读(20)
评论(0)
推荐(0)
实验5
摘要: 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[i
阅读全文
posted @ 2023-05-06 15:42 银桥
阅读(22)
评论(0)
推荐(0)
2023年4月
实验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", sizeo
阅读全文
posted @ 2023-04-15 23:52 银桥
阅读(37)
评论(0)
推荐(0)
实验三
摘要: 实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 7 void print_text(int line, int col, char
阅读全文
posted @ 2023-04-02 22:51 银桥
阅读(63)
评论(0)
推荐(0)
2023年3月
实验二
摘要: 实验任务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(0)
阅读全文
posted @ 2023-03-19 19:34 银桥
阅读(33)
评论(0)
推荐(0)
实验1
摘要: 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> \n");p
阅读全文
posted @ 2023-03-02 23:20 银桥
阅读(29)
评论(0)
推荐(0)
公告