0

Pls am creating a console calculator in cpp using switch case.

but i want it to output to a file for every calculation made and the file will be viewed as history

2nd Dec 2019, 5:13 PM
Oluwaseun Adesina
3 Answers
+ 2
I cant code for you but what is needed for this to happens you have alread mentioned those in your question. switch statements file store the operand and operation in one string and write that string in file.
2nd Dec 2019, 5:39 PM
minirkk
minirkk - avatar
+ 1
I write a code for it but it only save the first calculation. For the next it override the first info instead of saving to a nee line
2nd Dec 2019, 6:21 PM
Oluwaseun Adesina
0
Oluwaseun Adesina check this out https://stackoverflow.com/questions/21820004/how-can-i-generate-and-save-a-new-text-file-each-time-program-is-run#21820217 and if still have problem then it will be good to post source code here others might be able to help you🙂
2nd Dec 2019, 6:27 PM
minirkk
minirkk - avatar