-
实验2
任务1 源代码 #include <stdlib.h> #include <time.h> #define N 100 #define CNT 5 int main() { int number; int i; srand(time(0)); for(i = 0; i < CNT; ++i) { n -
实验2
任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 100 6 #define CNT 5 7 8 int main() { 9 int number; 10 int i; 11 12 sr -
高级语言程序设计课程第五次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16751 学号:0102600107 姓名: -
高级语言程序设计第五次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16747 学号:102500218 姓名:杨康 -
高级语言程序设计课程第五次个人作业
高级语言程序设计第五次作业 这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16751 学号:0 -
高级语言程序设计课程第五次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16749 学号:0102600123 姓名:林 -
高级语言程序设计课程第五次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16751 学号:0102600217 姓名: -
高级语言程序设计第五次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16751 学号:0102600207 姓名:杨 -
数据采集第一次作业
作业1 1)实验:用requests和BeautifulSoup库方法定向爬取给定网址(http://www.shanghairanking.cn/rankings/bcur/2020 )的数据,屏幕打印爬取的大学排名信息 代码块 import requests from bs4 import Be -
高级语言程序设计第六次作业
这个作业属于哪个课程:2026高级语言程序设计 这个作业要求在哪里:高级语言程序设计课程第六次个人作业 学号:052402239 姓名:陈逸轩 高级语言程序设计第六次作业 1. 按值传递与按地址传递 设计一个按值传递和按地址传递呈现不同效果的程序。 #include <stdio.h> void s -
高级语言程序设计第六次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:<0102600230> 姓 -
第四章作业
贪心策略:优先删除左边第一个比右侧数字大的数字,让高位尽可能小。 证明:假设:贪心第一步删位置p(首个sp>sp+1),不存在任何全局最优解包含该选择,即所有最优解都保留sp。 最优解保留sp,那么sp的高位不变,且sp>sp+1,把最优解里sp保留、换成删掉sp+1)或者后面别的数,得到的新数高位 -
实验2 类和对象_基础编程1
任务1: 代码组织: t.h 内容:类T的声明、友元函数声明 t.cpp 内容:类T的实现、友元函数实现 task1.cpp 内容:测试模块、main函数 t.h 1 #pragma once 2 3 #include <string> 4 5 class T { 6 public: 7 T(int -
实验三
任务一: 源代码: #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_ -
第四章作业
一. 删数问题的分析、证明与复杂度 贪心策略 从左到右遍历数字,用一个栈或字符串保存留下的数字: 每次拿到一个新数字,就把它跟栈顶,即上一个留下的数字比。 如果栈顶数字比新数字大,并且还有删除次数 k,就把栈顶数字弹出去删掉,k 减 1。一直重复这一步,直到栈顶数字不大于新数字,或者 k 用完。 把 -
实验三
task_1: 源代码: #include <stdio.h> char score_to_grade(int score); int main(void) { int score; char grade; while (scanf("%d", &score) != EOF) { grade = s -
实验3
task1 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& get_label() const -
实验2
任务一 代码: 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 in -
实验2
实验任务一: t.h : 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~ -
实验二
实验一 源文件 t.h源码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T(); /