-
高级语言程序设计课程第四次个人作业
属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 要求:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16750 学号:0102600211 姓名:林文彬 1 2 作业 1 -
实验2
实验1 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 100 #define CNT 5 int main(){ int number; int i; srand(time(0)); for(i = -
实验三报告
任务一 源代码: 点击查看代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { gra -
实验3
TASK1: button,hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& get_l -
实验3
任务一 源代码 点击查看源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::stri -
实验3
实验任务1 问题1 两者是组合关系,在Window类的声明中,直接声明这个类包含了一个button型的vector数组,且这个button类的生命周期与Window类相同。 问题2 1.优点是可以直接外部调用,不需要依靠公有函数。 风险是会破坏封装性,导致泄露或者外部误调用。 2.用户需要主动使用的 -
实验3
任务1 window.hpp源代码 点击查看源代码 #pragma once #include "button.hpp" #include <iostream> #include <vector> #include <algorithm> // 窗口类 class Window{ public: W -
实验3
任务1 源码: button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::strin -
实验3 类和对象_基础编程2
任务1 项目源代码 window.hpp #pragma once #include "button.hpp" #include <iostream> #include <vector> #include <algorithm> // 窗口类 class Window{ public: Window -
实验三
实验任务一 源代码: button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& g -
实验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(); / -
实验二
实验任务1 task1 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移 -
实验3
任务一 源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& get_ -
数据采集第三次作业
作业1 代码及结果 import requests from bs4 import BeautifulSoup import os import time import threading import re from urllib.parse import urljoin STUDENT_ID = -
实验2
任务一 一、源代码 //t.cpp #include "t.hpp" #include <iostream> #include <stdexcept> #include <string> const std::string T::doc{"a simple class sample"}; const -
实验2
实验一 代码 pragma once include class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T(); // 析构函数 void adjust -
实验三
任务一 task1源代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade -
实验二
task1 源代码 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); void adjust(int ratio); static -
102402104王可人 数据采集第二次作业
作业1 在中国气象网(http://www.weather.com.cn)给定城市集【3-5个城市】的7日天气预报 完整代码 from __future__ import annotations import argparse import re import sqlite3 import sys -
实验2
1. 实验任务1:简单类 T 本任务通过类 T 验证普通构造、复制构造、移动构造、析构、静态成员、友元以及 const 静态数据的用法。 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(c