#includeiostream #includestring #includevector int main() { std::vectorstd::string names; names.push_back("小甲鱼"); names.push_back("小由鱼"); for (int i = 0; i names.size(); i++) & ...
#includeiostream #includestring templateclass T class Stack { public: Stack(unsigned int size=100); ~Stack(); void push(T value); T pop(); private: unsigned int size;   ...
#includeiostream #includestring templateclass T void swap(T a, T b) { T temp=a; a = b; b = temp; } int main() { int i1 = 100; int i2 = 200; std::cout "交 ...
#includeiostream #includestring int main() { unsigned int count = 0; std::cout "请输入数组元素的个数:"; std::cin count; int *x = new int ; for (int i = 0; i count; i++) &n ...
#includeiostream #includestring class Company { public: Company(std::string theName); virtual void print(); protected: std::string name; }; class TecCompany :public Company { public: TecCompany(std::string nam ...