just use ( std :: ) before getline() or use ( using namespace std;) before main function
like this
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
#include <string>
usingnamespace std;
int main ()
{
string yow[3][2];
getline(cin,yow[0][1]);
cout<<yow;
return 0;
}
here is output of this code
[[, ], [, ], [, ]]
see the online output of any code at this page :: http://codepad.org
choose your programming language and put your code in that form , then press submit
after a while you will see the output !!!