Re: Help with newb's project

From: Vladimir Kadychevski (lutin511_at_altern.org)
Date: 10/24/04


Date: Sun, 24 Oct 2004 00:58:59 +0200

On Sat, 23 Oct 2004 18:33:50 -0400
"The_Kingpin" <the_kingpin_@hotmail.com> wrote:
hi there
i think it will be better for you to take a good C - programming book and try doing things by yourself. I don't think it would be very difficult for you to write this program. But if you want to become a programmer you have to learn how to find solutions by yourself ;) This is enen more true when the program to write is a part of your homework.

for a manual i think K&R is not a bad choice (have a look there is a thread in this group about the subject)

BTW i don't think comp.lang.c is here to do you your homework ;)
i think other people in this group will agree with my point of view ;)

try doing your exercise (write some algorithms and stuff) and if there is something you don't understand give me a sign :)

Vladimir

PS: The only advice i can give you at the moment is to start thinking by yourself :-) and _understand_ what's the purpose of each line of code you are writing.

> 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
>

-- 
Un*x is Sexy: 
who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; 
mount; gasp; yes; uptime; umount; sleep


Relevant Pages

  • Re: How to read records as strings?
    ... I am not reading any books, just check wiki or other references ... of object-oriented programming. ... As this is homework, your instructor and textbook may have some specific ... own SSCCE here for more comments and guidance. ...
    (comp.lang.ada)
  • C++ Cookbook - OReillys Latest Release
    ... difficult languages to learn. ... accomplish common programming tasks in an effective and proven manner. ... 'reference' books. ... XML, using the standard containers, and so on. ...
    (comp.unix.sco.announce)
  • Re: Rephrase - Could you sod off Spinoza
    ... Here p is the assertion that "C is a programming language" and q is ... recompiled using new compilers, and the old compilers are retained to ... best-selling and highly useful books of one Herbert Schildt... ... Evidence has been pointed at you that Herbert Schildt write inaccurate ...
    (comp.programming)
  • Re: What books do you read / recommend
    ... category is the C++ books, not because it's the best, or because ... well-explored that lots of uniquely good design books are also good C++ ... The C++ Programming Language 3rd Edition by Bjarne Stroustrup ... Design Patterns: elements of reusable object-oriented software by Gamma, ...
    (comp.object)
  • Re: OOD beginner (i already did a searc of the archives of comp.object)
    ... directory alphabetically lists all names and their phone numbers and ... i struggled for months with Python (i was just beginning programming at ... The first diagram is the OOA/D view where all one needs to know is that the collection is ordered somehow. ... followin boks (listing only those books which are available in INDIA) ...
    (comp.object)