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

📄 error.txt

📁 数据结构 ssd5 re2 100分
💻 TXT
字号:
When the program run to "if (size > (capacity - 1))" the size = 10,it seems that the word_list array isnot enough, word_list array expand as twice, it use for put the 10 pieces of data into the new_word_list, then delete word_list ,
it should use datele[] to delete all the data of word_list,because word_list is a array
next the word_list point to the address of new array new_word_list,
use this : word_list = new_word_list;

at this place we change the word_list's value, but the function build_wordlist (string * word_list, int capacity, string filename) use value delivery, when the main() use word_list
its value still the initial value
so we should use & to quote the word_list and capacity:
build_wordlist (string * &word_list, int &capacity, string filename) 

⌨️ 快捷键说明

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