摘要: 任务1 //标准库string,vector,array基础用法 #include<iostream> #include<string> #include<vector> #include<array> //函数模板 //对满足特定条件的序列类型T对象,使用范围for输出 template<type 阅读全文
posted @ 2023-10-19 23:38 15468483 阅读(18) 评论(0) 推荐(0)
摘要: 4 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { FILE* fp; fp = fopen("D:\\.temp\\data4.txt", "r"); if (feof(fp)) { printf("fail to op 阅读全文
posted @ 2022-12-27 22:54 15468483 阅读(28) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char sub 阅读全文
posted @ 2022-12-27 22:53 15468483 阅读(12) 评论(0) 推荐(0)
摘要: 任务一 #include <stdio.h> #include<stdlib.h> #define N 4 int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; printf("sizeo 阅读全文
posted @ 2022-11-29 21:41 15468483 阅读(13) 评论(0) 推荐(0)
摘要: 任务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 @ 2022-11-08 23:47 15468483 阅读(28) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h>#define N 5int main() { int number; int i; srand(time(0)); for (i = 0; i < N; ++i) { number = ran 阅读全文
posted @ 2022-10-25 23:19 15468483 阅读(21) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf(" O\n"); printf("<H>\n"); printf("I I\n"); return 0; } #include<stdio.h> int main() { printf(" O\n"); printf("<H 阅读全文
posted @ 2022-10-18 12:15 15468483 阅读(34) 评论(0) 推荐(0)