how do i assign these files
i have the 2 files wizard.txt and sorceress.txt how do i assign them to appliicabble classes ie wizCard and sor#Card? #include "stdafx.h" #include <iostream> #include <string> #include <fstream> using namespace std; class sorCard { public: int sType; string sName; int sAttk; int sDef; }; class wizCard { public: int wType; string wName; int wAttk; int wDef; }; const int ARRAYROW = 30; const int ARRAYCOL = 4; const int ROUNDSTART = 0; const int SIZE = 30; int main() { ifstream inFile; inFile.open("sorceress.txt");//opens sorceress cards file// if (!inFile) { cout << "Unable to open file"; system("pause"); } else { cout << "Files opened successfully" << endl; } inFile.open("wizard.txt");//opens wizard cards file// if (!inFile) { cout << "Unable to open file"; system("pause"); } else { cout << "Files opened successfully" << endl; } sorCard sorDeck[SIZE];//creates deck for sorceress for (int x = 0; x <= ARRAYROW; x++) { inFile >> sorDeck[1].sType >> sorDeck[1].sName >> sorDeck[1].sAttk >> sorDeck[1].sDef;//loads file into array } while (inFile >> sorDeck->sType >> sorDeck->sName >> sorDeck->sAttk >> sorDeck->sDef) { cout << sorDeck->sType << "," << sorDeck->sName << "," << sorDeck->sAttk << "," << sorDeck->sDef << endl; } inFile.close(); cout << endl << sorDeck[2].sType <<sorDeck[2].sName; wizCard wizDeck[SIZE];//creates deck for wizard for (int x = 0; x <= ARRAYROW; x++) { inFile >> sorDeck[1].sType >> sorDeck[1].sName >> sorDeck[1].sAttk >> sorDeck[1].sDef;//loads file into array } while (inFile >> wizDeck->wType >> wizDeck->wName >> wizDeck->wAttk >> wizDeck->wDef) { cout << sorDeck->sType << "," << sorDeck->sName << "," << sorDeck->sAttk << "," << sorDeck->sDef << endl; } inFile.close(); cout << endl << wizDeck[2].wType << wizDeck[2].wName; int sorHealth = 30; int wizHealth = 30; int round = 30; while (sorHealth > 0 || wizHealth > 0) { //program name cout << "Card Gam