arkland0913

2023年6月14日

实验七

摘要: 实验四 #include <stdio.h> #include <string.h> #include<stdlib.h> int main() { int t = 0; char s[80]; FILE *fp; fp = fopen("C://Users//Administrator//Desk 阅读全文

posted @ 2023-06-14 22:36 202283300646郝遥 阅读(2) 评论(0) 推荐(0) 编辑

2023年5月29日

实验6

摘要: 实验一 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char s 阅读全文

posted @ 2023-05-29 11:52 202283300646郝遥 阅读(7) 评论(0) 推荐(0) 编辑

2023年5月10日

实验五

摘要: 实验任务1#include <stdio.h> #include<stdlib.h> int main() { int x[2][4] = {{1, 9, 8, 4}, {2, 0, 4, 9}}; int i, j; int *p; // 指针变量,存放int类型数据的地址 int(*q)[4]; 阅读全文

posted @ 2023-05-10 23:00 202283300646郝遥 阅读(10) 评论(0) 推荐(0) 编辑

2023年4月20日

实验4

摘要: 实验一#include<stdio.h> #include<stdlib.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",size 阅读全文

posted @ 2023-04-20 13:13 202283300646郝遥 阅读(5) 评论(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[]); void p 阅读全文

posted @ 2023-04-05 19:39 202283300646郝遥 阅读(4) 评论(0) 推荐(0) 编辑

2023年3月21日

实验2

摘要: 实验任务1 问题一:line18将几个随机数组合起来 问题二:根据当时的电脑时间,随机生成四个四位数 实验任务2 #include<stdio.h> #include<stdlib.h> int main() { double x, y; char c1, c2, c3; int a1, a2, a 阅读全文

posted @ 2023-03-21 21:48 202283300646郝遥 阅读(12) 评论(0) 推荐(0) 编辑

2023年3月5日

实验一

摘要: 实验任务一 编译截图: 编译码: //打印一个字符小人 #include<stdio.h> #include<stdlib.h> int main() { printf(" O O\n"); printf("<H> <H>\n"); printf("II II\n"); system ("pause 阅读全文

posted @ 2023-03-05 19:51 202283300646郝遥 阅读(10) 评论(0) 推荐(0) 编辑

导航