⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errors.txt

📁 本程序给出了SSD5实验课中Recommended Exercise2的参考程序 内附有详细的注释 下载后请仔细参照源代码进行分析 切莫完全搬照
💻 TXT
字号:
After completed the program, I run it immdeiatly.
Soon, a error displayed in the debugger that the new_word_list was just a string. So I modified the sentence:"string new_word_list = *(new string[2 * capacity])" to "string * new_word_list = new string[2* capacity];". After this operation, new-word-list had the ability to hold the value of word-list. But the errors was still remain. I checked it carefully and found the the new_word_list can't hold the data indeedly. So I changed the sentence: "new_word_list = word_list[index];" to "new_word_list[index] = word_list[index];", and then it works well. In fact, the function was without bug expect a essential problem was still remained. The word_list can't get the new space distributed in the function, if the string information istlarger than the capacity. I checked the program again and decided to modified the function's return type: "void build_wordlist" to "string* build_wordlist". Done that job, I press the BuildExecute button and the program run successfully. And I knew, I have completed the work.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -