2023年6月14日
摘要:
实验任务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 =
阅读全文
posted @ 2023-06-14 22:00
是我,
阅读(10)
推荐(0)
2023年5月31日
摘要:
实验任务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-31 18:38
是我,
阅读(6)
推荐(0)
2023年5月10日
摘要:
实验任务1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for (i = 0; i < N; ++i) printf("%d", x[i]); printf("\n"); fo
阅读全文
posted @ 2023-05-10 19:26
是我,
阅读(11)
推荐(0)
2023年4月18日
摘要:
实验任务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-18 20:19
是我,
阅读(15)
推荐(0)
2023年4月5日
摘要:
1. 实验任务1 程序task1.c源码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, cha
阅读全文
posted @ 2023-04-05 16:14
是我,
阅读(23)
推荐(0)
2023年3月19日
摘要:
1、实验任务1 源代码 及 运行结果截图: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int
阅读全文
posted @ 2023-03-19 21:46
是我,
阅读(27)
推荐(0)
2023年3月3日
摘要:
【实验任务1】 源码1_1: // 打印一个字符小人 #include <stdio.h>#include <stdlib.h> int main (){ printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); prin
阅读全文
posted @ 2023-03-03 10:48
是我,
阅读(27)
推荐(0)