查看完整版本: [--
QVetcor 不能用 for each 操作?
--]
QTCN开发网
->
Qt基础编程
->
QVetcor 不能用 for each 操作?
[打印本页]
登录
->
注册
->
回复主题
->
发表主题
cyberpunker
2017-07-12 10:57
QVetcor 不能用 for each 操作?
一个结构体 structA,
然后QVector<structA> vecstructA;
for each( structA tempstructA in vecstructA )
{
tempstructA.a = xx;
tempstructA .b = yy ;
}
竟然不能修改 vecstructA ????!!!!
liuweilhy
2018-05-21 17:22
structA &tempstructA
cyberpunker
2018-05-23 09:26
liuweilhy
:
structA &tempstructA
(2018-05-21 17:22)
查看完整版本: [--
QVetcor 不能用 for each 操作?
--] [--
top
--]
Powered by
phpwind
v8.7
Code ©2003-2011
phpwind
Gzip disabled