-
实验二
任务一 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // -
实验3
task1 整型 字符类型 `` 将输入的分数转换为对应的等级A、B、C、D、E,其中 90-100 为 A,80-89 为 B,70-79为 C,60-69分为 D,60下为 E case分支缺少break语句,会导致过度执行 task2 计算整数n的各位数字之和 能 循环实现 递归实现 task -
高级程序语言课程第三次个人作业
班级连接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500328 姓名:刘宇桓 第四章4.8 第五章5.11 程序运输结果 -
高级语言程序设计课程第三次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500419 姓名:吴鸿益 1. 编写并运行书本 -
高级语言程序设计课程第三次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500333 姓名:陈俊荣 一、编写并运行书本 -
高级语言程序设计课程第三次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500424 姓名:陈俊杰 4.8 2. 5.1 -
高级语言程序设计课程第三次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500336 姓名:林陈帅 编写并运行书本第4章 -
实验二
任务一: T.h 1 #pragma once 2 #include <string> 3 // 类T: 声明 4 class T { 5 // 对象属性、方法 6 public: 7 T(int x = 0, int y = 0); // 普通构造函数 8 T(const T &t); // 复制 -
oop-实验2
task1 T.h 1 #pragma 2 3 #include<string> 4 5 class T{ 6 public: 7 T(int x=0,int y=0); 8 T(const T &t); 9 T(T &&t); 10 ~T(); 11 12 void adjust(int rati -
高级语言程序设计课程第三次作业
班级连接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500325 姓名:李志鹏 一.第四章 第五章 示例程序 设计 反思 -
实验二
实验任务1 源代码 T.cpp #include "T.h" #include <iostream> #include <string> // 类T实现 // static成员数据类外初始化 const std::string T::doc{"a simple class sample"}; con -
实验二
实验任务一 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); void disp -
实验二
task1 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T& t); // 复制构造函数 T(T&& t); -
现代C++编程初体验
##实验任务1 ##代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t -
实验3
task1 点击查看代码 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_ -
实验二
task1: 代码组织: T.h 内容:类T的声明、友元函数声明 T.cpp 内容:类T的实现、友元函数实现 task1.cpp 内容:测试模块、main函数 T.h : #pragma once #include <string> // 类T: 声明class T { // 对象属性、方法 pub -
实验3
实验任务1 代码 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_g -
实验2 现代C++编程初体验
1. 实验任务1 T.h 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T & -
高级语言程序设计第三次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500308 姓名:郭心悦 一、编写并运行书本第 -
算法第二章作业
找第k小数的分治算法描述 自然语言描述: 在数组中随机选一个数作为基准,把数组分成三部分:比基准小的、等于基准的、比基准大的,计算每部分有多少个数 判断: 如果k在"小"的部分,就在那部分继续找第k小的数 如果k在"等"的部分,基准就是答案 如果k在"大"的部分,就在那部分找第(k-小部分-等部分)