#include <iostream>
using namespace std;
typedef int* IntPtr;
int main() {
int team_size(0), player_removed(0);
cout << "How many players are on the team: ";
cin >> team_size;
IntPtr team;
team = new int[team_size];
cout << "What player do you want to remove (cause he sucks): ";
cin >> player_removed;
cout << "Enter Values: "; //For ease, just put in 1-10
//Gets the player ID of the players
for(int j = 1; j <= team_size; j++) {
cin >> team[j];
}
//Outputs the original array
for(int k = 1; k <= team_size; k++) {
cout << team[k] << ' ';
}
//Bumps each player down, based on where the user requested the removed player be
for(int l = player_removed; l <= team_size; l++) {
team[l] = team[l+1];
}
cout << endl;
team_size = team_size - 1; //Since we're only removing 1 player, we can take 1 from the size of the team
//Outputs the new array, with the player removed gone
for(int m = 1; m <= team_size; m++) {
cout << team[m] << ' ';
}
}