-
高级语言程序设计课程第六次个人作业
这个作业属于哪个课:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/14585 学号:102500320 姓名:张振锟 (1)设计一个按值传递 -
第三次作业
1.1 递归方程式与边界条件 定义 dp [i][j] 为从第 i 行第 j 列元素到三角形底部的最优路径和。递归方程式为 dp [i][j] = triangle [i][j] + max (dp [i+1][j], dp [i+1][j+1]),核心是当前最优值依赖下一行相邻两元素的最优解。边界 -
高级语言程序设计课程第五次个人作业
这个作业属于https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在https://edu.cnblogs.com/campus/fzu/gjyycx/homework/14581 学号:102500430 姓名:黄华烨 设计一个getchar和putcha -
高级语言程序设计课程第五次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/14581 学号:102500435 姓名:林俊杰 设计一个getch -
实验4
实验任务1: #include <stdio.h>#define N 4#define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)); -
week3task
实践报告 1.按照动态规划法的求解步骤分析作业题目“数字三角形”: 1.1 递归方程: dp[i][j]=triangle[i][j]+max(dp[i+1][j], dp[i+1][j+1]) 方程的定义:dp[i][j] 表示从位置 (i, j) 出发到达底部所能得到的最大路径和。 边界条件:当 -
实验4
实验任务1 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 printf("sizeof(x) = %d\n", sizeof(x)); -
实验四
任务一 点击查看代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", siz -
实验4
task1.c 源代码 点击查看代码 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; printf( -
实验四
1.(1)是连续存放 , x和&x[0]的值相同 (2)二维数组在内存中是按行连续存放的 ,x、x[0]和&x[0][0]的值相同 2.(1)形参int x[] , int n 实参x, n (2)标准输入读取 n个整数,并依次存储到一维数组 x[ ]中 计算数组 x中 n个元素的平均值,但去除一个 -
实验4
实验任务1: 点击查看代码 #include <stdio.h> #define N 4 #define M 4 void test1() { int x[N] = {1,9,8,4}; int i; printf("sizeof(x) = %d\n",sizeof(x)); for (i = 0; -
实验四
task.1 点击查看代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", si -
实验四
task 1: #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < N; ++i) printf(" -
实验任务4
实验任务1 问题1:连续存放,值相同 问题2:连续存放,值相同,相差16个字节,差值的含义是数组一行所占字节数 实验任务2 问题1:形参的书写是int x[] 实参书写是x 问题2:函数 input 的功能是将输入的数依次存入数组,函数 compute 的功能是找出数组中的最大和最小值,除去最大和最 -
实验2
任务1: #include "T.h" #include <iostream> void test_T(); int main() { std::cout << "test Class T: \n"; test_T(); std::cout << "\ntest friend func: \n"; -
数据采集作业1
代码源:https://gitee.com/wsmlhqqwwn/LH/tree/master/作业1 1.作业①: 要求:用requests和BeautifulSoup库方法定向爬取给定网址(http://www.shanghairanking.cn/rankings/bcur/2020)的数据, -
实验2
#pragma once #include <string> #include <iostream> class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); -
实验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 & -
实验二
任务一 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // -
高级语言程序设计课程第三次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13574 学号:102500336 姓名:林陈帅 编写并运行书本第4章