How to operate overload “>>”?
问题 Product **products; int numProducts = 0; void setup() { ifstream finput("products.txt"); //get # of products first. finput >> numProducts; products = new Product* [numProducts]; //get product codes, names & prices. for(int i=0; i<numProducts; i++) { products[i] = new Product; finput >> products[i]->getCode() >> products[i]->getName() >> products[i]->getPrice(); } } I am getting an "invalid operands to binary expression" error for this line: finput >> products[i]->getCode() >> products[i]-