#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Library Managment in C


    Hai,

    I have one assignment question.This is the Question
    Interactive Program in C Language for Library Managment system.
    Maintain a Library Catalogue with the fields like Access Number,Authors Name,Title Of the Book,Year of Publication,Publishers Name and Price.Manage the Users with different Priviliges and Permissions like Teacher,Student and Staff.

    Can any one pls tell me the answer for this question.I tried lot in net,but i didnt get according to my requirement.If u give any code,it will be useful for me.Pls give me as early as possible.Thanks in Advance
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,255
    Rep Power
    2222
    What question? I don't see any question. All I see is a homework assignment. The purpose of homework assignments is for the student to learn something. I very much doubt that the intent was for you to learn to cheat and to plagarize.

    Start by writing a specification for your own use. Specify what your program will do in terms of the operations that are necessary to maintain such a library catalogue (eg, add, delete, edit, look up) and how to perform each of those operations in English. Until you know what you're going to have to do, you won't know how to code it.

    BTW, teachers have been known to check this forum for their students seeking to cheat. And some have been caught at it.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    Hello dwise1_aol,

    Iam doing MCA in Correspondence.I dont have time to sit and think.That is the reason i asked this question in this forum.Dont Speak as u know Everything.If u cant u do, otherwise u can do u r work.Dont speak Unwantedly about others.Keep this as the last thing.

    Comments on this post

    • ptr2void disagrees : Another cheater.
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Sorry, you've come to the wrong place. This is NOT a free homework forum. Is it too late to ask for a refund on your MCA course?
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    Hello Scorpions4ever,

    I know what to do.U dont have any rights to ask me to refund my MCA Course.Behave Yourself and mind u r words.

    Comments on this post

    • Lux Perpetua disagrees
    • ptr2void disagrees : You are a great example why I will not consider anyone with an MCA degree for employment. Too many cheaters and scammers.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Personal Diary - Code written in C with Graphical User Interface


    Personal Diary - Code written in C with Graphical User Interface you can find it in following url

    ownmycode.blogspot.in/2012/09/Pesonal-Diary-A-Mini-Project-In-Written-in-Turbo-C.html
  12. #7
  13. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,417
    Rep Power
    1871
    @ajaysullaan

    OK, so far, I can see the following problems.

    1. Overuse of goto.
    $ grep -c goto *
    DAIRY.C:18
    DAIRY.H:65
    DAIRYLOAD.C:11
    GUI.H:33


    2. Masses of code in .h files.
    $ wc *
    268 377 5715 DAIRY.C
    2253 2882 44265 DAIRY.H
    512 670 10220 DAIRYLOAD.C
    1187 1856 20953 GUI.H
    4220 5785 81153 total

    Shared code should be put into a separate .c file, and included in projects to create two executables.
    A more refined approach would be to use a library.


    3. Buffer overruns (finding these is like shooting fish in a barrel)
    Code:
    struct detail
    {
    char name[50],name1[50],pl[50],str[50],dist[50],ct[50],em[50],dno[50];
    char phno[50],pin[50];
    int bd,bm,by,flag,age;
    }det;
    
    ///snip
    for(i=0;i<=100;i++)
    {
    det.name[i]='\0';
    det.name1[i]='\0';
    det.pl[i]='\0';
    det.str[i]='\0';
    det.dist[i]='\0';
    det.ct[i]='\0';
    det.em[i]='\0';
    det.dno[i]='\0';
    det.phno[i]='\0';
    det.pin[i]='\0';
    Woah, dude!, all your arrays are 50 chars, not 100 chars.

    4. Crap indentation , verging on non-existent.

    5. Far too many magic numbers throughout the code.
    A prime example being that you scatter 50 or 100 all over the place, not knowing what the side of the array really is.

    #define MAX_NAME_LEN 50
    etc
    would greatly assist with readability.

    Comments on this post

    • b49P23TIvg agrees : I use wc weekly, but have never used it this effectively!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo