我定义了字符串char a[3];
a="135";
为什么编译不过啊,提示
Description Resource Path Location Type
#515 a value of type "char *" cannot be assigned to an entity of type "char" wmw.c /hua_evmc6678l/src line 658 C/C++ Problem
怎么才能对字符串数组的某一位赋值呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我定义了字符串char a[3];
a="135";
为什么编译不过啊,提示
Description Resource Path Location Type
#515 a value of type "char *" cannot be assigned to an entity of type "char" wmw.c /hua_evmc6678l/src line 658 C/C++ Problem
怎么才能对字符串数组的某一位赋值呢?