-
实验2
任务1 t.h源码 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T() -
第四章作业
一. 删数问题的分析、证明与复杂度 贪心策略 从左到右遍历数字,用一个栈或字符串保存留下的数字: 每次拿到一个新数字,就把它跟栈顶,即上一个留下的数字比。 如果栈顶数字比新数字大,并且还有删除次数 k,就把栈顶数字弹出去删掉,k 减 1。一直重复这一步,直到栈顶数字不大于新数字,或者 k 用完。 把 -
实验二
实验任务1 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T() -
数据采集第三次作业
第三次作业 作业一:单线程与多线程图片爬虫 分析过程 本次选择福州大学新闻网“影像福大”栏目作为目标网站: https://news.fzu.edu.cn/yxfd.htm 打开页面后,通过 F12 的 Elements 面板可以观察到图片主要写在 <img> 标签中。部分图片地址使用相对路径,例如 -
OOP 实验2
实验2 类和对象_基础编程1 任务1 源代码t.cpp 点击查看代码 //t.cpp #include "t.h" #include <iostream> #include <stdexcept> #include <string> // static成员数据: 类内声明、类外初始化 const s -
实验2
1.实验任务1 源代码 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T& t); // 复制构造函数 T(T&& t); // 移动构造函数 ~T(); -
实验3
任务1 源代码1 点击查看代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { gra -
实验2
1. 实验任务1:简单类 T 本任务通过类 T 验证普通构造、复制构造、移动构造、析构、静态成员、友元以及 const 静态数据的用法。 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(c -
实验2
实验任务1 源代码 task1.cpp 点击查看代码 #include <iostream> #include <utility> #include "t.h" void test() { using std::cout; using std::endl; cout << "T info: " << -
实验3
实验3 任务1 截图 问题1:将分数分配到对应的等级;整形;字符型 问题2:char输入应当输入字符,不应为字符串;缺少break,无法跳出switch语句,导致最后输出均为E 任务2 截图 问题1:计算n这个数各个位数的和 问题2:可以;前者是迭代,后者是递归 任务3 截图 问题1:计算x的n次方 -
实验2
任务1 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T -
高级语言程序设计课程第六次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:0102600121 姓名: -
实验3
实验3 实验任务1 问题1: 答:函数score_to_grade的功能是根据输入的分数生成对应分段的成绩等级,形式参数类型为int整数类型,返回值类型为char字符类型。 问题2: 答: error1:如上图所示,由于使用了 "" 双引号,输入类型与返回值类型char字符型不匹配,导致无输出。 e -
类和对象_基础编程1
面向对象程序设计 实验2 实验任务一 源码以及运行测试截图 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t -
20242302 2026-2027-1 《网络与系统攻防技术》实验五实验报告
20242302 2025-2026-1 《网络与系统攻防技术》实验五实验报告 姓名:杨泽坤 学号:20242302 实验环境:Kali Linux(主机名 yangzekun,实验目录 ~/exp5-20242302)+ Windows 宿主机 1.基础知识 信息搜集是攻击链的第一步,按是否与目标 -
数据采集第三次作业
数据采集与融合技术-第三次作业 项目 内容 课程 2026数据采集与融合技术实践 作业要求 作业三 我的 Git 仓库 aarctic 学号姓名 102402110 姜思源 一、作业1代码与图片: Gitee文件夹链接:作业1 1.1 作业代码与运行结果 (1)实现思路 需求参数 题目给的限制:学号 -
数据采集第二次作业
第二次作业 本作业使用 Python 3.12,主要库为 urllib.request、BeautifulSoup、json 和 sqlite3。 作业1、中国气象网 7 日天气预报 解析过程 图中展示了中国天气网 7 日天气预报页面的抓包和元素分析过程。页面数据直接包含在服务器返回的 HTML 中 -
实验2
Task 1 1.运行截图 2.代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); / -
实验2
实验内容 实验任务1 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动 -
实验二
实验2 类和对象_基础编程1 任务1 t.h源代码 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t)