Add a static LoadCards method to the WarGame class. Declare your method in the WarGame.h file and define the method in the WarGame.cpp file (C++ Class Methods ( )). It should have a string parameter for the file path. In the method, it should read the file and split the data to get the suits and faces. Use them to create 52 unique cards and store each card in the _cards vector field of the class.



Answer :

Other Questions