ジャワ:
byte[] arr1=new byte[]{0x01};
String aa = "helloo";
short[] s1 = new short[1]; // **
s1[0] = 246; // **
Object[] obj = new Object[]{s1,arr1,aa}
子:
signed char a1[] = {0x01};
char *str = "helloo";
short int st1[] = {246}; // **
char* c [] = {st1,str1,c2};
正しいshort int st1[] = {246}
ですか?そして、次のエラーが表示されます:
" illegal implicit conversion from 'short *' to 'char *'
"。short を char に割り当てる方法は?