Newb's project help

This is a discussion on Newb's project help within the C Programming forums, part of the General Programming Boards category; Hi all, I'm new to C programming and looking for some help. I have a homework project to do and ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    6

    Post Newb's project help

    Hi all,

    I'm new to C programming and looking for some help. I have a homework project to do
    and could use every tips, advises, code sample and references I can get.

    Here's what I need to do. I have a file named books.txt that contains all the informations
    on the books. Each book is a struc containing 6 fields written on separated line in the
    folder. I need to use the fgetc command to read the info of this file.

    The program must create 2 alphabetical order sorted by book's subject and for a
    same subject, the other info must be grouped by autor's name.

    The second list must be created sorted in decreasing order of the book's release date, and
    for each year, the info must be grouped by subject.

    Nos these two lists must also be created in another file named booksort.txt. Each autor's
    first and last name must be uniform (all lowercase except for the first character). Also,
    if a first name contains only 1 character, a '.' must follow (ie. Smith Marc L.). If a
    non-character is found ('-', ',', '.', etc.), we must replace it by a "/" and add the
    correct number of spaces (ie. Marc*Smith is now Marc / Smith)

    Finaly, we must change the date's format from the current file (m/d/yyyy) to (yyyy/mm/dd)


    Looks like a lot of job to me so as I said, I'm tking anything that can help me.
    Thanks for your time and for helping a newb finding his way !

    Frank

  2. #2
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Ok, some help:

    First of all you should read this concerning homework questions on the board. Then you should read this regarding general issues of posting. After you have read both of those and understand that we will not write your code for you, but you must first post your own attempt, read this thread on how to post your code using code tags.

    ~/

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Looks like a lot of job to me
    That's because you're looking at the program as a whole and not in pieces like you should. Break the problem down into manageable tasks and solve them. Then put all of the solutions together and you'll have a reasonable first attempt at the program. At that point it's all glue and duct tape (which is hard enough on its own), so you've made your job scores easier.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 10:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 08:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21