?? error.txt
字號(hào):
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)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -