?
/*************************************************************************
> File Name: ex1.23.cpp
> Author:
> Mail:
> Created Time: Thu 18 Jan 2024 01:44:15 PM CST
************************************************************************/
#include<iostream>
#include"Sales_item.h"
using namespace std;
int main(){
Sales_item item, countItem[10];
int i = 0, j;
int sign = 0;
cin>>item;
countItem[i] = item;
while(cin>>item){
for(j = 0; j <= i; j++){
if(item.isbn() == countItem[j].isbn()){
sign = 1;
countItem[j] += item;
}
}
if(sign == 0){
i++;
countItem[i] = item;
}
sign = 0;
}
for(j = 0; j <= i; j++){
cout<<countItem[j]<<endl;
}
return 0;
}