手机扫码访问

导航
您当前的位置:首页 > 高教类 > 工学类
问题:

[单选题]What happens if the FOR loop in the insert() function changes to the following form?Dju答案窝(daanwo.com)-大学作业答案分享平台
for (int i = r; i < _size; i++) _elem[i + 1] = _elem[i];Dju答案窝(daanwo.com)-大学作业答案分享平台
ANo problem, just change it from front to back 没有问题,只是改为从前向后移动罢了Dju答案窝(daanwo.com)-大学作业答案分享平台
BOverwrite all elements in the original vector with rank greater than r 会覆盖原向量中秩大于r的所有元素Dju答案窝(daanwo.com)-大学作业答案分享平台
COverwrite all elements in the original vector with rank less than r 会覆盖原向量中秩小于r的所有元素Dju答案窝(daanwo.com)-大学作业答案分享平台
DWill cause vector expansion failure 会引起向量扩容失败
答案解析:

您可能感兴趣的问题
相关问题
关于我们 | 用户指南 | 版权声明 | 给我留言 | 联系我们 | 积分商城 | 答案求助 | 网站地图
Copyright © 2020 www.daanwo.com All Rights Reserved