#include <iostream>
#include "Sales_item.h"
/*******************************************
Inpu: 0-201-70353-X 4 24.99
Outp: 0-201-70353-X 4 99.96 24.99
*******************************************/
int main(){
Sales_item book;
// 读入ISBN号、出售的册数以及销售价格
std::cin>>book;
// 写入ISBN、出售的册数、总销售额和平均价格
std::cout<<book<<std::endl;
system("pause");
return 0;
}
遇到问题
缺失Version_test.h文件。
解决方法
#ifdef lround
inline long lround(double d)
{
return (d >= 0) ? long(d + 0.5) : long(d - 0.5);
}
#endif