- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 C++虚继承
#include #include class Pet { public: Pet(std::string theName); virtual void eat(); protected: std::string name; }; class Cat : public Pet { public: Cat(std::string
2015-06-29 11:17:14 344
原创 C++多重继承
#include #include class Person { public: Person(std::string theName); void introduce(); protected: std::string name; }; class Teacher:public Person { public: Teacher(s
2015-06-29 11:13:24 334
原创 C++ 中的友元friend
#include #include class Lovers { public: Lovers(std::string theName); void kiss(Lovers *lovers); void ask(Lovers *lovers, std::string something); protected: std::string na
2015-06-27 20:13:25 395
原创 C++ 中的iostringstream的使用
#include #include #include #include #include struct personInfo{ std::string name; std::vector phone; }; int main() { std::vector personInfoList; std::ifstream cin("1
2015-06-26 17:22:37 793
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人