I need help with reading text from a file(Shipping addresses and quantity of items) and i need to write the address to an address file and the #items to a receipt file. Along with the # items, I need the number to be passed to a function where it calculates the sub total and total.
Well as your code shows already, you can read from file streams just like the standard in and standard out... are you trying to figure out how to read a number in as an int?
The cout << name is just testing to see if I got the file to read properly.
what I am trying to do is take the name and address's and write them into a Manifest txt file. Also, I need to take the numbers(the quantity of items they want) and pass that value to where it will calculate the sub total/tax/total.
The first part of the code promts the user for all of this information, now our teacher wants us to be able to do all of that PLUS have add a menu option to just read from a file and print to the receipt.txt and manifest.txt
thanks for all the help in advance! if there is a video or text that can explain this don't hesitate to link.
Well file streams are almost exactly the same as input/output from prompt, so I don't see how you would have much difficulty putting everything together from what you already have.
My suggestion is to just start working on it and come back if you have really specific questions. Seems like you have a good start parsing the file so far.