Passing istream into a function
问题 I am making a game-type program similar to the idea of pokemon. We have a tournament class that keeps track of several teams(its own class) which consists of pets(its own class) with different kinds of pets being subclasses of CPet. We are attempting to pass a file name into main, from main pass that file name into the Tournament class. In the Tournament class we open the file with: 14 //Construct a tournament 15 CTournament::CTournament(const char *Filename){ 16 //opening file 17 ifstream