/*
Gatina Veronica IS136R
Recommended Exercise 2
*/
¹1
void build_wordlist (string *&word_list, int &capacity, string filename){//Line 10
}
//*&word_list : address of the pointer must be two.
¹2
string *new_word_list = new string[2 * capacity];//Line 36
//*new_word_list : must be pointer.
¹3
new_word_list[index]= word_list[index];//Line 40
//new_word_list[index] : we sea elements of array one by one.
¹4
delete []word_list;//Line 42
//delete []word_list : all elements must be deleted.
¹5
word_list = new_word_list;//Line 43
//word_list : we must use not like pointer, just use in simple type.
Rec.Ex2.rar_Work It
版权申诉
27 浏览量
2022-09-23
16:25:01
上传
评论
收藏 2KB RAR 举报
Kinonoyomeo
- 粉丝: 76
- 资源: 1万+
最新资源
- 基于MATLAB自然图像的随机数发生器的设计与实现
- 基于MATLAB的图像分割源码+详细文档+全部数据(高分课程设计).zip
- 基于MATLAB的图像分割源码+详细文档+全部数据(高分课程设计).zip
- 基于MINST数据库的手写体数字识别CNN设计,MATLAB实现源码+全部资料.zip
- 基于MINST数据库的手写体数字识别CNN设计,MATLAB实现源码+全部资料(高分项目)
- stata 经纬度计算反距离矩阵的方法.docx
- ORACLE数据库面试题解答DBA数据库管理员JAVA程序员架构师必看.docx
- stata 经纬度计算反距离矩阵的方法.zip
- ORACLE数据库面试题解答DBA数据库管理员JAVA程序员架构师必看.zip
- 华为-华为od题库练习题之密码截取.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈