-
实验4
实验任务1: 代码: GradeCalc.hpp 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(const -
Python蓝桥杯第一次学习
本周学习的内容是:1——13输入输出进阶 一、新学知识点整理 1:切片操作:s[::-1] 可实现字符串 / 列表的逆序 2:map 函数:用于批量处理可迭代对象的元素,常与input()结合处理输入 3:bool 类型与条件判断:掌握布尔值的逻辑判断与条件分支设计 4:print () 的 end -
实验4
实验任务一 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); void input(int -
高级语言程序设计课程第八次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15590 学号:102500315 姓名:刘雨鉴 编写并运行书本第1 -
实验四
任务1 源代码 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); void input(in -
实验4 组合与继承
实验任务1 代码组织: GradeCalc.hpp 类GradeCalc声明 GradeCalc.cpp 类GradeCalc实现 demo1.cpp 测试代码 + main.cpp GradeCalc.hpp #pragma once #include <vector> #include <arr -
实验4
task1: #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <string> #include < -
实验4
task 1 GradeCalc.h 1 #pragma once 2 3 #include<vector> 4 #include<array> 5 #include<string> 6 7 class GradeCalc{ 8 public: 9 GradeCalc(const std::stri -
csq-python基础题解-素数
Python基础题解之素数 什么是素数? 素数(质数)是指在大于 1 的自然数中,除了 1 和它本身以外不再有其他因数的数。 例如:2, 3, 5, 7, 11, 13 ... 注意: - 1 不是素数 - 最小的素数是 2 一、基础判断法(单个素数判断) 1.1 试除法(最直观) 思路:对于数字 -
高级语言程序设计课程第八次个人作业
班级链接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15590 姓名:李志鹏 学号:102500325 1 2 3 6 7 1 2 3 8 9 总 -
实验四:组合与继承
任务一:代码:task.cpp: #include <iostream> #include <string> #include "GradeCalc.hpp" void test() { GradeCalc c1("OOP"); std::cout << "录入成绩:\n"; c1.input(5) -
实验四
实验任务一 GradeCalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); v -
实验四 组合与继承
实验1 1.源代码 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); void input( -
gb_蓝桥杯python学习系列一基础语法—_for循环
在 Python 中,for 循环是用于遍历可迭代对象的核心结构 一.基础语法 二、遍历常见对象 序列类型 2. 字典遍历 三、控制循环流程 range() 函数 2. break 和 continue 3. else 子句 当循环未被 break 中断时执行: 全文总结 for循环是遍历工具而非计 -
zsj_蓝桥python学习 系列一 Python 极简实战:一行代码搞定 “回文判断” 编程题
Python 极简实战:一行代码搞定 “回文判断” 编程题 引言:在编程题中,“回文判断” 是经典入门题,而 Python 的语法特性可以让这类问题的解法极度简洁。本文以 OJ 平台的 “判断是否构成回文” 题目为例,从题目分析→代码实现→语法解析→拓展优化四个维度,带你用 Python 写 “优雅 -
ztl_蓝桥杯python学习系列一_语法讲解_函数01
函数01 定义:组织好的,可重复使用的,用来实现特定功能的代码段 (1) 完整格式 (2) 简单格式 (3) 带参格式 在函数进行计算的时候,可接受外部(调用时)提供的数据 (4) 带返回值格式 所谓“返回值”,就是程序中函数完成事情后,最后给调用者的结果 (5) None类型 如果函数没有使用re -
实验4 组合与继承
##实验一 GradeCalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); v -
实验4
1. 实验任务1 源代码 1 #pragma once 2 #include<vector> 3 #include<array> 4 #include<string> 5 class GradeCalc{ 6 public: 7 GradeCalc(const std::string &cname) -
高级语言程序设计课程第八次个人作业
班级链接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15590 姓名:卢龙腾 学号:102500324 1. 2. 3. 4. 5. 6. 7. -
实验四
1.试验任务1 设计性实验任务:用组合实现成绩计算器类。 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(c