C++对象切片

// test.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <cstdlib> #include <new> #include <iostream> #include <string> using namespace std; class Pet { string pname; public: Pet(
相关文章
相关标签/搜索