Thread: help with files
View Single Post
Join Date: Jul 2008
Posts: 21
Reputation: azwraith69 is an unknown quantity at this point 
Solved Threads: 0
azwraith69's Avatar
azwraith69 azwraith69 is offline Offline
Newbie Poster

help with files

 
0
  #1
Jan 7th, 2009
hello,, my first post here..
im a 1st year CS student..

i need a help on having the idea of how to make this assignment..
i need to make a program,,a question bank,, with this functions:

1. Add a question
2. Delete question(s)
3. Modify a question
4. Display question(s)
a. All questions
b. Questions by subject
c. Questions by subject-level (category)
5. Search for a question by keyword (displays questions that have the keyword found in the question or answer)
(THERE ARE 7 SUBJECTS ad 5 LEVELS,, so 35 CATEGORIES all in all)

The questions database must be persistent across usage sessions. That is to say, changes made to the Bank will have to be retained once the program is closed and then re-opened. To make this possible, the filesystem is used to store the questions for the quiz game. Load it once at startup, then save before quitting. Also, the Bank must be able to store an unlimited number of questions.

is it wise to use vectors here, then store them to files? if so,, how?
i think its easier to manipulate many textfiles,, instead of one,, maybe 1 textfile per subject..

i'm not that good in file processing and manipulations(like my english!).. so i really need help how to do this one... even without codes,, just specific ideas and algorithms.... thX..
Last edited by azwraith69; Jan 7th, 2009 at 3:17 am. Reason: just to erase something
Reply With Quote