更新时间:2022-03-23 04:02:16
尝试:
MyItem * item = new MyItem;
但不要忘记在使用后删除它:
But do not forget to delete it after usage:
delete item;
C ++错误:转换为非标量类型
请求从“myItem *”转换为非标量类型“myItem”
请求从'...'转换为非标量类型'...'
错误:转换为非标量类型
使用std c ++ 11智能指针转换为非标量类型
如何解决此错误“从const_iterator转换为非标量类型"?
转换为非标量类型错误