I am wondering why my code started to list memory allocation after working with a string array. could use some help.
here is the source code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
string firstName; //First name of student.
string lastName; //Last name of student.
int row=0; //Left array position.
int column=0; //Right array position.
string phoneNumber; //Phone number of student.
//Array declaration and position variables
string array[row][column];
cout<<"Please input first name: " <<endl; //prompt for first name.
cin >> firstName; //input for first name.
array[row][column]=firstName; //set for array space 0,0
right++; //move to array space 0,1
cout<<"Please input last name: " <<endl; //prompt for last name.
cin >> lastName; //input for last name.
array[row][column]=lastName; //set for array space 0,1
return 0;
}