![]() |
|
#1
|
|||
|
|||
Help with creating files in cHi,
Can someone help me to Write a C program that will do the following: • Read in a number of records of your friends’ names and birthdays (string with format <mmdd>). Save it on a binary file. Each record (struct) must also have a record number (sequential and starting at 1) that is generated automatically by the program and stored in the first field of the struct. • Create two index files, i.e. a file consisting of a name field and a record number field. The file must be sorted (use a sorting algorithm) according to the name field. Do the same for the birthday field. This process must take place automatically after the names have been entered. • Use the index files to find the birthday of a friend if the name is entered, or the name if a date is entered, or a list of every birthday in a specific month. • You must also be able to update the file (go to the end and add records). • All the above options must be displayed as a menu and implemented by means of appropriate functions. Also give appropriate error messages (e.g. if the file does not exist. Here is my code: CPP / C++ / C Code:
|
|
#2
|
|||
|
|||
Re: Help with creating files in cWow! You've done all that already?
Does it compile and run? What DOESN'T it do that you need help with? In your own words, send back an outline of what your present code does. Start with the first thing in main() , end with the last, list everything that happens in between to the best of your ability. ++Howard; |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| creating password protected files | dabigmooish | C++ Forum | 5 | 12-Jan-2007 06:43 |
| issues compiling .h and .cpp files with Dev C++ | iceman2006 | C++ Forum | 9 | 17-May-2006 19:32 |
| "HTML Help Workshop" to creating help files | shinyhui | MS Visual C++ / MFC Forum | 0 | 08-Aug-2005 03:52 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 21:47 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 02:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The