So I'm using two separate files for the first time and seem to be having trouble passing the values. The program should add, subtract, multiply, and divide fractions printing the inputted fractions and the result.
The two files are as follows:
and file two:
When I try to run the program, it prints 0 / 0 fractions leading to a NaN result. My guess is that the values read in the first file are not being passed to the second file, but I'm unsure how to correct it.
I'd really appreciate any insight into why this is happening.