实验二 数组与指针
摘要:info.hpp源代码 #ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <string> using namespace std; class info{ private: string nickname; string
阅读全文
实验一 类与对象
摘要:Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ private: double real,imag;
阅读全文
实验一task4.cpp
摘要:#include "User.hpp" #include <iostream> int main() { using namespace std; cout << "testing 1......" << endl; User user1("Jonny", "92197", "xyz@hotmail
阅读全文
实验一User.hpp
摘要:#ifndef USER_HPP #define USER_HPP #include <iostream> #include <string> using namespace std; class User{ private: string name; int passwd; string emai
阅读全文
实验一task3.cpp
摘要:#include "Complex.hpp" #include <iostream> int main() { using namespace std; Complex c1(3, -4); const Complex c2(4.5); Complex c3(c1); cout << "c1 = "
阅读全文
实验一Complex.hpp
摘要:#ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ private: double real,imag; public: Comp
阅读全文