Q:

Write a program that reads a set of book sales transactions, writing each transaction to the standard output

0

http://www.informit.com/title/032174113 contains a copy of
Sales_item.h in the Chapter 1 code directory. Copy that file to your
working directory. Use it to write a program that reads a set of book sales
transactions, writing each transaction to the standard output.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <iostream>
#include "../include/Sales_item.h"

int main()
{
    Sales_item item;
    while (std::cin >> item) std::cout << item << std::endl;

    return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now