I would like to assign the integer value which is included in a string to an array.
The code:
int s[10][10]; string line="1asd"; char z=line[0]; s[0][0]=z-'0';
Error:
`Invalid types 'char[int]' for array subscript`
Aucun commentaire:
Enregistrer un commentaire