会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lei1459
博客园
首页
新随笔
联系
订阅
管理
2025年10月
实验1
摘要: 任务1: 源代码: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 7 #include <iostr
阅读全文
posted @ 2025-10-15 20:16 lei1459
阅读(17)
评论(1)
推荐(0)
2023年12月
实验七
摘要: task4: 1 #include<stdio.h> 2 int main() 3 { 4 char a; 5 int count=0; 6 FILE *fp; 7 fp = fopen("data4.txt","r"); 8 if(fp==NULL) { 9 printf("fail to ope
阅读全文
posted @ 2023-12-19 09:52 lei1459
阅读(12)
评论(0)
推荐(0)
实验六
摘要: task4: 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sal
阅读全文
posted @ 2023-12-17 20:56 lei1459
阅读(52)
评论(0)
推荐(0)
2023年11月
实验五
摘要: task1_1: 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pm
阅读全文
posted @ 2023-11-30 20:28 lei1459
阅读(16)
评论(0)
推荐(0)
实验四
摘要: task1-1 1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 8 // 输出数组a占用的内存字节数 9 printf("sizeof(a) = %d\n", si
阅读全文
posted @ 2023-11-15 20:01 lei1459
阅读(25)
评论(0)
推荐(0)
实验三
摘要: task.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, cha
阅读全文
posted @ 2023-11-01 21:19 lei1459
阅读(15)
评论(0)
推荐(0)
2023年10月
实验二
摘要: Task1: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main() 10 { 11 int number
阅读全文
posted @ 2023-10-21 15:48 lei1459
阅读(7)
评论(0)
推荐(0)
实验1
摘要: 一.实验任务1 1.1 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 return 0; 9 } 截图1 1.2 1 #include <stdio
阅读全文
posted @ 2023-10-06 16:19 lei1459
阅读(18)
评论(0)
推荐(0)
公告