2D char array

I had been given a project

i want to enter 2D array by using getline function to sort lines.....

how i can do it?
it is must looked something like this

char str[10][10];

for( int i=0 ; i<10 ; i++)
cin.getline( str[i] );
oh....here comes another problem......
c++ is not executing the program.....
a statement comes out when i run it.....Can Not Initialize the Debugging Subsystem
Topic archived. No new replies allowed.