正在加载图片...
上海交通大学交大密西根 联合学院·一 81T UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University Common Pitfalls Subscripting Does Not Add Elements vector sint>intVec; //empty vector for0=0;i<10gi*+) intVec[i]=i;//disaster,intVec does not have memory reserved B Problem with this is you go beyond the boundary of the vector and it is a serious error and very hard to find it out.Common Pitfalls Common Pitfalls • Subscripting Does Not Add Elements • Problem with this is you go beyond the boundary of the vector and it is a serious error and very hard to find it out
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有