I have the .txt file and all the project files in the same folder. Even tried adding the full file location.
You are not getting any visible output because you are not printing out anything.
You are opening a file, reading the contents into a struct array, closing the file and then ending the program.
Just as you overrode istream's >> operator, for output you need to override ostream's << operator.
Last edited on