📄 errors.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 + -