会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
noeleven
博客园
首页
新随笔
联系
订阅
管理
2025年12月23日
实验6
摘要: 实验任务1: contestant.hpp: 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant 7 { 8 long id; // 学号 9 std:
阅读全文
posted @ 2025-12-23 23:20 noeleven
阅读(4)
评论(1)
推荐(0)
2025年12月16日
实验5
摘要: 实验任务1: publisher.hpp: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher 7 { 8 public: 9 Publisher(const std::strin
阅读全文
posted @ 2025-12-16 10:48 noeleven
阅读(5)
评论(1)
推荐(0)
2025年12月1日
实验4
摘要: 试验任务1: GradeCalc.hpp: 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc 8 { 9 public: 10 GradeCalc(const
阅读全文
posted @ 2025-12-01 22:35 noeleven
阅读(9)
评论(1)
推荐(0)
2025年11月24日
实验3
摘要: 试验任务1: 源代码: button.hpp: 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button 7 { 8 public: 9 Button(const std::string &label_);
阅读全文
posted @ 2025-11-24 19:36 noeleven
阅读(5)
评论(1)
推荐(0)
2025年10月26日
实验2
摘要: 实验任务1: 源代码: main.cpp: 1 #include "T.h" 2 #include <iostream> 3 4 void test_T(); 5 6 int main() { 7 std::cout << "test Class T: \n"; 8 test_T(); 9 10 s
阅读全文
posted @ 2025-10-26 20:06 noeleven
阅读(13)
评论(1)
推荐(0)
2025年10月13日
实验1
摘要: 实验任务1: 源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T &c); 8
阅读全文
posted @ 2025-10-13 23:37 noeleven
阅读(14)
评论(1)
推荐(0)
2024年12月26日
实验7
摘要: 实验任务4: 源代码: 1 #include <stdio.h> 2 #define N 10000 3 int main() 4 { 5 char ch; 6 int lines=0,i=0; 7 char str[N]; 8 FILE *fp; 9 fp = fopen("D:\\data4.t
阅读全文
posted @ 2024-12-26 17:32 noeleven
阅读(38)
评论(0)
推荐(0)
2024年12月17日
实验6
摘要: 实验任务4: 源代码: 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 doubl
阅读全文
posted @ 2024-12-17 00:17 noeleven
阅读(28)
评论(0)
推荐(0)
2024年12月5日
实验5
摘要: 实验任务1.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, in
阅读全文
posted @ 2024-12-05 17:43 noeleven
阅读(28)
评论(0)
推荐(0)
2024年11月6日
实验4
摘要: 实验任务1: 源代码: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf("si
阅读全文
posted @ 2024-11-06 00:17 noeleven
阅读(29)
评论(0)
推荐(1)
下一页
公告