Thread: C++ Help Plz
View Single Post
Old 03-1-2012, 05:05 PM   #1
Kibblre
Caelondia Represent
FFR Veteran
 
Kibblre's Avatar
 
Join Date: Jul 2004
Location: A place of hearts and ghosts
Age: 31
Posts: 1,984
Default C++ Help Plz

So, I'm doing an assignment where I have to take a text file, analyze the number of words and distinct words, and then print out the most used words and their frequencies. It works like a charm, but when using large files (like we need to handle) my method of searching through the amount of words to see if it is distinct takes ****ing forever. Can anyone help me make this more efficient?

Here's the code (pastebin so it keeps formatting):
http://pastebin.com/80Nr0VrL
__________________
Какой идиот придумал Бутерброд с дикобраза? Он хулиган и бездельник.
Kibblre is offline   Reply With Quote