Hey guys, i have a question about labeling arrays. So my assignment is to create an array, and its size is determined by the user. The array has a maximum of 10 rows, and the rows need to be labeled as letters (A, B, C, etc). What i am trying to figure out is how to label the rows in the array.Here is an example of what i want to display
1 2 3 4 5 6
Welcome to the Latin Big Band
Please enter number of rows : 11
ERROR: Out of range, try again : 3
Please enter number of positions in row A : -4
ERROR: Out of range, try again : 3
Please enter number of positions in row B : 4
Please enter number of positions in row C : 5
Someone told me that i could make it into a loop, and represent the numbers as letters, something like this:
int main();
{
cout<< "Welcome to the Latin Big Band\t\t:"<<endl;
cout<< "-----------------------------\t\t:"<<endl;
cout<< "Please enter number of rows\t\t:"<<endl;
cin>> numberofrows;
while (char[a]=0; A=1; a++)
{
cout<< char[a] <<endl;
}
}