首页 > TAG信息列表 > TextCoder

实验二 数组、指针与C++标准库

实验任务五: info.hpp #include<string> #include <iostream> using namespace std; class Info{ public: Info(string name="xxx",string contact="xxx",string city="xxx",int n=1):nickname(name),contact(contact

实验2 数组、指针与C++标准库

T1: info.hpp 1 #include<iostream> 2 #include<string> 3 #include<iomanip> 4 using namespace std; 5 class info { 6 public: 7 info(string nm, string tel, string ct, int n) :nickname(nm), contact(tel), city(ct), n(n) {} 8 vo

实验二 数组 指针与C++标准库

四 实验结论 (1)实验任务5 1. 源代码如下 Info.hpp #ifndef INFO_HPP #define INFO_HPP //Info 类的定义 #include <iostream> #include <string> #include <iomanip> using namespace std; class Info { public: Info(); Info(string nickname0, str

实验二 数组、指针与c++标准库

实验结论: 实验任务5: Info.hpp #ifndef Info_hpp #define Info_hpp #include<iostream> #include<string> #include<vector> #define capacity 100 using namespace std; class Info { public: Info(string x, string y,string z, int n0):nickname

实验二:数组、指针与C++标准库

实验五: 以下为Info.cpp文件源码 1 #include <string> 2 #include <iostream> 3 using namespace std; 4 class info { 5 private: 6 string nickname; 7 string contact; 8 string city; 9 int n; 10 static int have; 11 public: 12 i

实验二 数组、指针与c++标准库

TextCoder.hpp #include<string> using namespace std; class TextCoder{ public: TextCoder(); TextCoder(string text); ~TextCoder(); string encoder(); string decoder(); private: string text; };