Hello comrades. I wanted to make a 2D table to receive user input strings. There is a part that is not doing. Kindly advise where to correct the mistake.
#include <iostream>
#include <vector>
using namespace std;
int main (){
int cols =15;
int i,j,rows;
char reader;
cout<<"Enter the land details for the said land";
cin.get(reader);
dynamicArray.push_back(reader);
}
}
for (i=1; i<rows; i++) {
for (j=0;j<cols; j++){
cout<<"You have entered this data"<<dynamicArray[i][j]<<endl;