c++:错误:lvalue required as left operand of assignment
错误thread.cpp:53:23: error: lvalue required as left operand of assignment static_cast<int *>(0)=0;解释左边static_cast,将0强制转换成int 指针,变成了左值;赋值后面的0是一个常量右值。所以两边的类型不匹配。报错,左值赋值需要左值。更正int * p = static_cast<int *>(0);...