零回复 | 有回复 | 作业 | 其他 | 所有
  • 实验三

    实验任务1 源代码 button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string& label_); 9 co
    面向对象程序设计(南京信息工程大学)  木辛梓  2025-11-21 20:07   1   11
  • NUIST_LAB03

    🧪 实验报告 一、实验名称 实验2 类和对象_基础编程2 二、实验目的 理解类的组合机制(has-a),能熟练用 C++ 定义与使用组合类 理解深复制与浅复制的区别 灵活运用标准库(array、vector、string、迭代器、算法库等)解决实际问题 面向具体问题,运用面向对象思维设计类(自定义
    面向对象程序设计(南京信息工程大学)  witlethe  2025-11-21 17:11   1   11
  • 实验三

    实验3 类和对象 一、实验目的 理解类的组合机制(has-a),能熟练用 C++ 定义与使用组合类 理解深复制与浅复制的区别 灵活运用标准库(array、vector、string、迭代器、算法库等)解决实际问题 面向具体问题,运用面向对象思维设计类(自定义/标准库),合理组合并编程解决 二、实验准
    面向对象程序设计(南京信息工程大学)  cuupe  2025-11-21 15:29   1   15
  • 实验3

    一.实验任务1 1.源代码 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string &label_); 9 const std
    面向对象程序设计(南京信息工程大学)  flower00  2025-11-20 20:57   1   34
  • 实验3

    task1 源代码 button.h 查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string& label_); const std::string
    面向对象程序设计(南京信息工程大学)  Asahina  2025-11-20 17:50   1   20
  • oop-实验3

    task1 Button.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 class Button{ 7 public: 8 Button(const std::string &label_); 9 const std
    面向对象程序设计(南京信息工程大学)  fg-ever  2025-11-20 15:54   1   36
  • 实验3

    一、实验任务1 源代码task1 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string &label_); 9 const
    面向对象程序设计(南京信息工程大学)  htsjubbymjeymsy  2025-11-20 00:00   1   12
  • 实验三 类和对象_基础编程2

    实验任务1 实验源代码如下: button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string& label_);
    面向对象程序设计(南京信息工程大学)  摇摇车nuist  2025-11-19 21:30   1   25
  • Test3

    任务一 源代码 button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::stri
    面向对象程序设计(南京信息工程大学)  董建标  2025-11-19 19:36   1   22
  • OOP-实验三

    实验任务一 源代码 button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::st
    面向对象程序设计(南京信息工程大学)  MEIYBAO  2025-11-19 10:49   1   23
  • 算法第三章实践作业

    1.1 递归方程式、定义及边界条件 定义 设 's[i][j]' 表示从三角形顶部(第1行第1列)走到第 'i' 行第 'j' 列时的最大路径和。 递归方程式 对于第 'i' 行第 'j' 列的元素('i > 1'),其最大路径和等于自身值加上上方相邻两个元素(第 'i-1' 行第 'j-1' 列和
    网络空间安全2401(广东外语外贸大学 - 信息学院)  续雾晚  2025-11-18 12:47   1   8
  • 实验4

    task1 1.是连续存放的,相等。 2.按行连续存放。三者相同。差值16byte,含义是一行四个int值共占4*sizeof(int)==16字节 task2 1.形参是x[ ],实参是x. 2.遍历输入长度为n的数组x 算出所有得分去掉最高最低分的均分 task 3 1.形参x[ ][N],实参
    程序设计基础(南京信息工程大学)  johnwzq  2025-11-17 15:53   1   12
  • 实验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
    程序设计基础(南京信息工程大学)  Fandhi  2025-11-17 15:52   1   8
  • 实验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;
    程序设计基础(南京信息工程大学)  hhqdream  2025-11-17 15:42   1   7
  • 实验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(
    程序设计基础(南京信息工程大学)  唐思齐  2025-11-17 15:35   1   8
  • 实验4

    1、实验任务1 问题1:是,相同 问题2:是,相同,16,每行元素占用空间 2、实验任务2 问题1:int x[], int n;x,n 问题2:读取输入的数据,将一维数组作为参数。 去掉一个最高分和最低分求平均值 3、实验任务3 问题1:int x[][N], int n;x,n 问题2:不能 问
    程序设计基础(南京信息工程大学)  嗯亨  2025-11-17 15:32   1   8
  • 实验四

    实 验 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 9 // 输出数组x占用的内存字节数 10 printf("sizeof(x
    程序设计基础(南京信息工程大学)  Groundc  2025-11-17 15:05   1   4
  • 实验4

    任务1 #include <stdio.h> #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 <
    程序设计基础(南京信息工程大学)  蒋志凌  2025-11-17 14:38   1   6
  • 实验四

    任务一 1.连续,相同 2.连续,相同,相差16,一个单位所占的字节数 任务二 1.int x[] ,x[] 2.输入数组,计算输入数据的均值 任务三 1.int x[N],x[N][N] 2.不能 3.将数据初始化后输出 任务四 #include <stdio.h> #define N 100 v
    程序设计基础(南京信息工程大学)  Wu_He  2025-11-17 14:35   1   6
  • 实验4

    1:连续,值相同 2:连续,值相同,差值16,差值为列的数值 1.形参用地址或数组名+[],实参为数组名 2.依次输入n个数;去掉最大最小值求平均数 1.形参为地址或数组名+[][x],实参为数组名 2.不能省略,会报错 3.依次输出数组为数列;将值赋给某数组的所有元素 #include <stdi
    程序设计基础(南京信息工程大学)  even_233  2025-11-17 14:26   1   4