samedi 1 octobre 2016

Adding read in files in C++

I am very new and have to write a program that reads from file, which I was able to do, but at the end of the program, it has to perform a math equation, see below

100 55

50 105

25 70

my question states "the first line indicates that an item costs $100 and 55 were sold, output the total number of items sold and total cost"

Aucun commentaire:

Enregistrer un commentaire