Click here to Skip to main content
15,926,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLANGID to name? Pin
Ravi Bhavnani17-Mar-04 6:38
professionalRavi Bhavnani17-Mar-04 6:38 
AnswerRe: LANGID to name? Pin
David Crow17-Mar-04 7:30
David Crow17-Mar-04 7:30 
GeneralRe: LANGID to name? Pin
Ravi Bhavnani20-Mar-04 6:01
professionalRavi Bhavnani20-Mar-04 6:01 
GeneralVC6 / Visio Drawing Control Pin
RichardGrimmer17-Mar-04 6:32
RichardGrimmer17-Mar-04 6:32 
GeneralRe: VC6 / Visio Drawing Control Pin
Steve S18-Mar-04 2:17
Steve S18-Mar-04 2:17 
GeneralRe: VC6 / Visio Drawing Control Pin
RichardGrimmer19-Mar-04 22:44
RichardGrimmer19-Mar-04 22:44 
GeneralRe: VC6 / Visio Drawing Control Pin
Steve S21-Mar-04 23:00
Steve S21-Mar-04 23:00 
Generalplease Help me with this program Pin
juntupally17-Mar-04 6:20
juntupally17-Mar-04 6:20 
I am having trouble doing this program.

write a simple menu-driven program to allow a user to request a record by KEY. You should search (read) the file for the record, and display it if it exists in your file. A user can delete a record. If it exists, you need to add its vacated block location to the free list. A user can add a new record. if it does not exist, you will take a free block from the free list, and place the record there. Be sure to update all "next record" and "previous record" pointers on all add and delete operations. A user can update a record. if the record existsall you need to do is to allow the user to enter a new field value, then write the record back to the file. Finally, you should allow the user to display the file to screen as well as write it to a text file (not a binary file).

THe record can be a couple of fixed-length strings and an ID field, say an integer. To maintain both record blocks and empty blocks, each physcal record will have a pointer (really a file offset) to the next physical block and the previous one. In a sense this will be similar to a linked list - but it will exist in a file, not in memory.

Make data set large, at least 10,000 records. Gather data randomly or get a large data file from the internet. The exact data is up to you, but you should have int class an integer key value, plus at least two other fields. At least one of them should be a string (use a C-style string which is fixed length, to allow for easy random access binary file movement with seekg() or seekp().

GeneralRe: please Help me with this program Pin
David Crow17-Mar-04 7:31
David Crow17-Mar-04 7:31 
GeneralRe: please Help me with this program Pin
juntupally17-Mar-04 8:53
juntupally17-Mar-04 8:53 
GeneralRe: please Help me with this program Pin
MeterMan17-Mar-04 10:44
MeterMan17-Mar-04 10:44 
GeneralRe: please Help me with this program Pin
David Crow18-Mar-04 2:33
David Crow18-Mar-04 2:33 
GeneralRe: please Help me with this program Pin
Ravi Bhavnani20-Mar-04 6:22
professionalRavi Bhavnani20-Mar-04 6:22 
GeneralHelp needed on ATL control Pin
ben217-Mar-04 6:18
ben217-Mar-04 6:18 
GeneralConverting a CString to CInt Pin
Blue Pyre17-Mar-04 6:15
Blue Pyre17-Mar-04 6:15 
GeneralRe: Converting a CString to CInt Pin
Joe Woodbury17-Mar-04 6:30
professionalJoe Woodbury17-Mar-04 6:30 
GeneralRe: Converting a CString to CInt Pin
Antti Keskinen17-Mar-04 6:37
Antti Keskinen17-Mar-04 6:37 
GeneralRe: Converting a CString to CInt Pin
HAHAHA_NEXT17-Mar-04 6:52
HAHAHA_NEXT17-Mar-04 6:52 
GeneralRe: Converting a CString to CInt Pin
Blue Pyre17-Mar-04 10:52
Blue Pyre17-Mar-04 10:52 
GeneralRe: Converting a CString to CInt Pin
MeterMan17-Mar-04 10:58
MeterMan17-Mar-04 10:58 
GeneralRe: Converting a CString to CInt Pin
Blue Pyre17-Mar-04 11:38
Blue Pyre17-Mar-04 11:38 
GeneralRe: Converting a CString to CInt Pin
Prakash Nadar17-Mar-04 14:55
Prakash Nadar17-Mar-04 14:55 
GeneralRe: Converting a CString to CInt Pin
MeterMan17-Mar-04 14:57
MeterMan17-Mar-04 14:57 
GeneralC++ .NET Forms Shutdown application Pin
Neoankt17-Mar-04 6:09
Neoankt17-Mar-04 6:09 
GeneralRe: C++ .NET Forms Shutdown application Pin
Antti Keskinen17-Mar-04 7:05
Antti Keskinen17-Mar-04 7:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.