3
Reply

how to save/convert a row in a 2D char array to a string??

binod km

binod km

11 years ago
2.8k

hey i have a 2D char array x[5,5]. now i have to convert each row into a string for some manipulation. i have tried this one but returned errors.

for (int i = 0; i < 5;i++ )
 {
  string str= new string( x[i, j] );

}

thanks


Answers (3)