| | |
Help with a big project if you can help.
![]() |
•
•
Join Date: Sep 2009
Posts: 10
Reputation:
Solved Threads: 0
I have a project that requires me to make a search engine for classes. If i were to enter Biology, then classes such as genetics, chemistry, anatomy and physiology are to show up. But the thing is i have the classes and their descriptions in a file and i was wondering if anyone can give me some pointers on how to atleast start the project. I really don't know how to group the classes together so that I can compare the words and come up with results....or is there a better way?
•
•
Join Date: Nov 2009
Posts: 195
Reputation:
Solved Threads: 12
0
#2 Nov 19th, 2009
It might be a good idea to create a class or struct of type schoolCourse or something like that which has one or more of some type of variable to keep track of what category it is in (e.g. language, biology, science) and break it up as much or as little as you need to with those classifications/keywords, which can be integers, enumerated types, etc. or strings (which would be playing it a little bit looser since they don't compare as nicely). It should also have a string to hold the class name and any other information you need to know about the class.
Fill an array of type schoolCourse with the information for each of your available classes.
Then, when the user inputs the search key, just go through the array of schoolCourses and compare the search key with the keyword/classification.
Fill an array of type schoolCourse with the information for each of your available classes.
Then, when the user inputs the search key, just go through the array of schoolCourses and compare the search key with the keyword/classification.
Consider giving me reps if I'm helpful :)
•
•
Join Date: Nov 2009
Posts: 195
Reputation:
Solved Threads: 12
0
#4 Nov 19th, 2009
•
•
•
•
But if i already have the list of classes in a file is there a way i can compare the descriptions of the classes by reading that file from the program?
What all information is contained in your list of classes file? Is it just the class name, or is there other information about the class as well, like categories (e.g. you have classes named biology and chemistry, both might have a category of science). If that kind of information is present, it should be a pretty simple comparison from the search category to the class category. If not, you will need to have a pretty exhaustive comparison function hard-coded in that takes the search key entered by the user and compares it to some finite set of possible class names that might match.
Consider giving me reps if I'm helpful :)
•
•
Join Date: Sep 2009
Posts: 10
Reputation:
Solved Threads: 0
0
#5 Nov 19th, 2009
yeah it has the class name and the description of the class we have to make it to where if i put in biology, the description of biology will appear. then it finds matches. let's say the matches were chem and anatomy: it would bring up both classes along with their descriptions but the descriptions are in a text file i believe
•
•
Join Date: Nov 2009
Posts: 195
Reputation:
Solved Threads: 12
0
#6 Nov 19th, 2009
•
•
•
•
yeah it has the class name and the description of the class we have to make it to where if i put in biology, the description of biology will appear. then it finds matches. let's say the matches were chem and anatomy: it would bring up both classes along with their descriptions but the descriptions are in a text file i believe
Then, when the user inputs the class (school) they want to search on, find that class (school/c++) in the array and display the elements from it. Then go through the rest of the array and find other classes (school/c++) which have the same category and display them.
Consider giving me reps if I'm helpful :)
![]() |
Similar Threads
- I need a great web designer and proffesional PHP Coder ~ 10k project (Web Development Job Offers)
- my first project - a media player (C++)
- My second (semi) big project (Java)
- Big Project (Web Development Job Offers)
- Problem compiling big program (C++)
- My Project is my Forum (Show Off your Projects)
- final project (Visual Basic 4 / 5 / 6)
- big project need some guidance (ASP.NET)
- Shell Programming Project (Shell Scripting)
- Java project (Java)
Other Threads in the C++ Forum
- Previous Thread: Linear and Binary search
- Next Thread: Just after a little claification im on the right track
Views: 301 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays beginner binary borland c++ c/c++ calculator char class classes code compile compiler console constructor conversion convert count data delete desktop dll encryption error file forms fstream function functions game givemetehcodez graph homework http iamthwee ifstream input int java lazy lib link linker list loop looping loops map math matrix memory newbie news number objects output pointer pointers problem program programming project python qt random read recursion recursive reference return search sort sorting spoonfeeding string strings struct student studio system template templates text tree url variable vc++ vector video visual visualstudio win32 window windows winsock wordfrequency wxwidgets





