# include "Sales_item"
int main()
{
Sales_item book;
//读入ISBN号、售出的册数以及销售价格
std::cin >> book;
//写入ISBN、售出的册数、总销售额和平均价格
std::cout << book << std::endl;
return 0;
}
--------------------Configuration: exam-1 - Win32 Debug--------------------
Compiling...
exam-1.cpp
f:\a资料\c++primer练习\例1.5.1sales_item类\exam-1.cpp(2) : fatal error C1083: Cannot open include file: 'Sales_item': No such file or directory
执行 cl.exe 时出错.