KEIL C 中遇到问题:error C213:left side of asn-op not an lvalueunsigned char code word[61][8]={.}; uchar array_temp[7][8];void main() { array_temp[0]=word[0];while(1);}提示array_temp[0]不能做左值,是咋回事啊,
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/03 03:35:06
![KEIL C 中遇到问题:error C213:left side of asn-op not an lvalueunsigned char code word[61][8]={.}; uchar array_temp[7][8];void main() { array_temp[0]=word[0];while(1);}提示array_temp[0]不能做左值,是咋回事啊,](/uploads/image/z/11218758-6-8.jpg?t=KEIL+C+%E4%B8%AD%E9%81%87%E5%88%B0%E9%97%AE%E9%A2%98%3Aerror+C213%3Aleft+side+of+asn-op+not+an+lvalueunsigned+char+code+word%5B61%5D%5B8%5D%3D%7B.%7D%3B+uchar+array_temp%5B7%5D%5B8%5D%3Bvoid+main%28%29+%7B+array_temp%5B0%5D%3Dword%5B0%5D%3Bwhile%281%29%3B%7D%E6%8F%90%E7%A4%BAarray_temp%5B0%5D%E4%B8%8D%E8%83%BD%E5%81%9A%E5%B7%A6%E5%80%BC%2C%E6%98%AF%E5%92%8B%E5%9B%9E%E4%BA%8B%E5%95%8A%2C)
KEIL C 中遇到问题:error C213:left side of asn-op not an lvalueunsigned char code word[61][8]={.}; uchar array_temp[7][8];void main() { array_temp[0]=word[0];while(1);}提示array_temp[0]不能做左值,是咋回事啊,
KEIL C 中遇到问题:error C213:left side of asn-op not an lvalue
unsigned char code word[61][8]={.}; uchar array_temp[7][8];
void main()
{ array_temp[0]=word[0];
while(1);}
提示array_temp[0]不能做左值,是咋回事啊,
KEIL C 中遇到问题:error C213:left side of asn-op not an lvalueunsigned char code word[61][8]={.}; uchar array_temp[7][8];void main() { array_temp[0]=word[0];while(1);}提示array_temp[0]不能做左值,是咋回事啊,
array_temp[0]是个指针,且不可修改.
要写入数据,应当
array_temp[0][0]=word[0][0];
你对多维数组的概念还不是很清晰.建议好好看看书.