I am a macOS user and I am unfamiliar with windows powershell. I am required to write a c++ code for multiplication/addition of matrices. No big deal!
The instructor implied that the task will be executed by
./assignment1.exe C:/Users/delliott/mat1.txt C:/Users/delliott/mat2.txt
Do I have to hardcode the paths for my fstream? Or does it mean my code has to take the paths as an input?
What approach is optimal so that my code’s getElement()
reads the required file without failing?