List inventory file to screen
Lets say I have 10 items on my inventory list, I dont want to write this out
10 times, is there a way to write that out with a ++ sign that once I set something to 10 it knows to print that out 10 times vs. having to oput that statement in 10 times? I want to make it look nice vs. alot of garbage that does not need to be in there.
inData >> prod >> item >> price >> tax;
cout << prod << " " << item << " " << price << " " << tax << endl;
outData << prod << " " << item << " " << price << " " << tax << endl;