I'm reading C++ Primer 5th Edition when i came to this part. It's a code it provided that I have to use but I keep getting
error: no match for
'operator>>'(operand types arestd::istream{akastd::basic_istream<char>}andSales_item)
on line std::cin >> book;
I tried looking it up and rewriting the code but I can't get it to work so I need help to fix this problem.
#include <iostream>
#include "Sales_item.h"
int main()
{
    Sales_item book;
    // read ISBN, number of copes sold, and sales price
    std::cin >> book;
     // write ISBN, number of copies sold, total revenue, and average price
    std::cout << book << std::endl;
    return 0;
}
 
     
     
    