创建对象的过程(临时对象)

class CGoods { public: CGoods(char* name, int amount, float price) { std::cout << this << " :CGoods::CGoods(char*,int,float)" << std::endl; mname = new char[strlen(name) + 1]; strcpy(mname, na
相关文章
相关标签/搜索