Write a program that accepts the name and ID number of 5 students and stores them in an array. After
all the students have been entered, the application should display the title “Student Roster” and then
list the names in the array. 2D Array.
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main()
{
string students[5][3];
cout << "Enter ID#: ";
cin >> students[0][0];
cout << "Enter First name: ";
cin >> students[0][1];
cout << "Enter Last name: ";
cin >> students[0][2];
cout << "STUENTS ROSTER" << endl;
cout << students[0][0];
system("PAUSE");
return 0;
}
this is what i have so far, i would prefer a loop than to type so much but idk how to do that, can someone please help me?