product.cpp
来自「big c++英文版书籍」· C++ 代码 · 共 24 行
CPP
24 行
#include "product.h"
Product::Product()
{
price = 0;
}
Product::Product(string d, double p)
{
description = d;
price = p;
}
string Product::get_description() const
{
return description;
}
double Product::get_price() const
{
return price;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?