面向对象程序设计-2020级 (南京信息工程大学)

  • 实验一 类和对象

    四、实验结论 实验任务三 complex.hpp 1 #ifndef COMPLEX_HPP 2 #define COMPLEX_Hpp 3 4 #include<iostream> 5 #include<cmath> 6 7 using namespace std; 8 9 class Compl
    ymmmnn   2021-10-24 23:43   3   17
  • 实验一 类与对象

    1 #ifndef COMPLEX_HPP 2 #define COMPLEX_HPP 3 4 #include<iostream> 5 #include<cmath> 6 7 using namespace std; 8 9 class Complex 10 { 11 private: 12 do
    斍奭藇簨   2021-10-24 23:38   3   31
  • 实验1 类与对象

    实验任务三 Complex.hpp 1 #include<iostream> 2 #include<cmath> 3 using namespace std; 4 class Complex{ 5 private: 6 double real, imag; 7 public: 8 Complex(d
    Xx0   2021-10-24 23:02   3   12
  • 实验一

    #ifndef COMPLEX_H #define COMPLEX_H #include<iostream> #include<cmath> class Complex { private: float real; float imag; public: Complex(float a = 0, f
    Asll321   2021-10-24 22:57   3   15
  • 实验一

    #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex(double r=0,const double i=0) { real=r; imag=i; } Complex(cons
    Rwang0   2021-10-24 22:57   3   18
  • 实验一 类与对象

    #ifndef Complex_hpp #define Complex_hpp #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(); Complex(double a) {
    辛夸高岭桂   2021-10-24 22:45   2   18
  • 实验一 类与对象

    //#ifndef Complex.hpp //#define Complex.hpp #include<iostream> #include <cmath> using namespace std; class Complex{ private: double real; double imag;
    Polaris啊   2021-10-24 22:41   3   20
  • 实验1 类与对象

    #include <iostream> #include<cmath> using namespace std; class complex{ public: complex(double real=0, double imag=0):REAL{real},IMAG{imag}{} complex(
    Ancientwords   2021-10-24 22:36   2   13
  • 实验一 类与对象

    #include<iostream> #include<cmath> class Complex { public: Complex(double i = 0, double j = 0) :a{ i }, b{ j }{} Complex(Complex const& p) :a{ p.a },
    直树不是植树   2021-10-24 22:34   2   13
  • 实验一 类与对象

    Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(): real{0},
    三面硬币   2021-10-24 21:40   2   10