I wanna write a c++ program to search inside a file and build a binary tree of all those words inside the file. Anyone can help or send me the code if you have ??
Thankx
cgsupervisor@yahoo.com
Binary Tree for searching file in c++?
Here's some code in C, but it should compile just fine
under C++ (and you can "pretty it up" with C++ method
definitions to replace the C functions if you like):
http://nob.cs.ucdavis.edu/classes/ecs030...
Also, if your problem is no more sophisticated than what
you've described, you could read the words into an array
and call qsort() in probably 20 lines of code.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment