We want to put in our arckives this information about the players , can we get help how to make a c++ code. We want it to be as what we wrote below. You can see our startings code in the end of articl but we couldnīt more.
1. Programet start with writing the name of the team
Write the name of the team: Kotoko
2. Menu it will shows with two options , add a new player or show all the players.
Teams namn: Kotoko
(1) Add new player.
(2) Show all the players.
(0) Close
Choose: 1
Teams namn: Kotoko
Add a player nr 1
First name: John // You write all this information
Last name: Phillip
Age: 24
Position: Forward
*When you put the player programet go to the menu
Teams namn: Kotoko
(1) Add new player.
(2) Show all the players.
(0) Close
Choose: 2 // to show all the players
Teams namn: Kotoko
1. Phillip, John 37 Forward
2. Ritchard, Jan 26 Back
3. Nils , Hans 32 Goalkeeper
Click en key to go to menu
Teams namn: Kotoko
(1) Add new player.
(2) Show all the players
(0) Close
Choose: 0
Code:#include <iostream> #include <iomanip> using namespace std; // int main () // { int tal1; // int tal2; // int tal3; // cout << "\nTEAMPROGRAMMET" << endl; // cout << "\nWrite the name of the team" << endl; // cin >> tal2; cout << '\n'; cout << "(1) Add a new player." << endl; // cout << "(2) Show all the players." << endl; cout << '\n'; cout << "Choose: \n\n"; int player; cin >> player; if (player == 1) { cout << "TEAMPROGRAMMET: kotoko" << endl; cout << "Add in new player nr 1" << endl; } return 0; // }