void displayArr(Pokemon arr[], int numGenPokemon, int genNum) { Pokemon tempPoke; int nameLength = 0; string tempName; for (int i = 0; i < numGenPokemon; i++) { tempPoke = arr[i]; if(genNum == 0 && i % 10 == 0) cout << endl << endl; //National Dex line breaks else if (genNum != 0 && i % 6 == 0) cout << endl << endl; // All other region line breaks if(tempPoke.getRevealed()) tempName = tempPoke.getName(); else tempName = tempPoke.getID(); printSpace(MAX_SPACE); nameLength = tempName.size(); cout << tempName; while(nameLength < MAX_SPACE){ printSpace(1); nameLength++; } } }