I saw this on a tutorial, but it doesnt work:
Code:char multi[5][10]; multi[0] = {'0','1','2','3','4','5','6','7','8','9','0'};
I saw this on a tutorial, but it doesnt work:
Code:char multi[5][10]; multi[0] = {'0','1','2','3','4','5','6','7','8','9','0'};
You can do that only in defining line.
Its also initializing 11 array members, but the array is only 10.
I didnt understand well, can you type an example for me?
I want to make a 2D matrix (array of arrays), so i saw on a tutorial this way:
But i get this error:Code:char multi[5][10]; multi[0] = {'0','1','2','3','4','5','6','7','8','9'}; multi[1] = {'0','1','2','3','4','5','6','7','8','9'}; multi[2] = {'0','1','2','3','4','5','6','7','8','9'}; multi[3] = {'0','1','2','3','4','5','6','7','8','9'}; multi[4] = {'0','1','2','3','4','5','6','7','8','9'};
syntax error before '{' token in line:
"multi[0] = {'0','1','2','3','4','5','6','7','8','9'};"
Last edited by Milhas; 03-26-2008 at 11:30 AM.
ok, tnks!