摘要: task4.c #include "stdfax"#include <stdio.h> #include <stdlib.h>int main() { FILE *fp1,*fp2,*fp3; char ch; fp1=fopen("task4.txt","r"); fp2=fp3=fp1; whi 阅读全文
posted @ 2023-06-15 11:32 大帅浩淇 阅读(4) 评论(0) 推荐(0) 编辑
摘要: task4.c #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 typedef struct{ char num[10]; int s1; int s2; dou 阅读全文
posted @ 2023-06-01 12:38 大帅浩淇 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task1.c (1) #include <stdio.h>#include <stdlib.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for (i = 0; 阅读全文
posted @ 2023-05-11 13:21 大帅浩淇 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task1.1.c // .1.c.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #define N 4 int _tmain(int argc, _TCHAR* argv[]) 阅读全文
posted @ 2023-04-20 13:50 大帅浩淇 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task1.c #include <StdAfx.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int c 阅读全文
posted @ 2023-04-05 21:12 大帅浩淇 阅读(4) 评论(0) 推荐(0) 编辑
摘要: task1 (1)line 18 代码实现的功能是 :一个586 到781 间的随机数 (2)该程序的功能为随机生成586到781 之间的"真·随机数" task2 // .2.2.c.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h"#include <stdl 阅读全文
posted @ 2023-03-22 22:51 大帅浩淇 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task1.1.c #include "stdafx.h" // 打印一个字符小人 #include <stdio.h> #include <stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); print 阅读全文
posted @ 2023-03-07 20:08 大帅浩淇 阅读(4) 评论(0) 推荐(0) 编辑