Results 1 to 14 of 14

Thread: C++ Help library

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    C++ Help library

    Hello can someone help me how to build this:

    For every book in the library to enter values :
    - name of author
    - book title
    - section
    - publishers
    - number of the object and all objects in database
    And the program to display on the screen all the books of specific section

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: C++ Help library

    Is this homework of some kind? Have you got anything so far?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    yes its homework, but they havent teach us how to do this its job that we must find but i dont know how it should be made thats why i ask for help

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: C++ Help library

    Your problem description is a little vague.
    Are you supposed to be able to enter book information that will be save to a database? Or a file of some sort? Or perhaps just in-memory?
    Is this C or C++? Any other requirements?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    to save it in some file, yes its library for books, where to enter books titles,author stuffs like that that are in description that is it
    can you add a comment for everyline what is it description and what it does, because i need to learn it what does every code means to understand it
    what is the main function and end
    Last edited by diablo21; Dec 14th, 2012 at 03:51 AM.

  6. #6
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: C++ Help library

    Have you read anything about reading and writing to files? Take a look here.
    I guess how well-designed this project should be depends on your level of knowledge and the level of the course you are attending.

    First off, I would create a class to represent book. I would then prompt the user for each field that needs to be filled in, and store the information in a new book instance.
    Once that is done you need to write the book to the file. Use the link above for reference.

    Once you can write a book to file, it should be fairly straightforward to read the books from the file and display for the user.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    okey thanks for the information for save in file i will try to fiind more information and try make to read/write in file , but for sure they havent touth us how to do this stuff we are still in beggining stuff like import export informations and little switch bases and this is too much knowledge for us to do it, thanks for the help also i apritiate it

  8. #8
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: C++ Help library

    Just break the task into manageable pieces and solve it one step at a time. If you get stuck, do not hesitate to post a question!
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    okey but you will help me with the other stuff i will try to find something for open/save file and if i got problems i will write here in the topic cause after 2 days i need to present it

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    someone will help today is the last day please help me

  11. #11
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: C++ Help library

    What kind of help are you expecting to get? Should someone write the entire project for you?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    thats why i posted here
    if i know it how to do this i will make it but i don't know so much C++ to make something like that i can only make cout some words and enter numbers nothing more this is pretty much higher stuff for me

  13. #13
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: C++ Help library

    You will never learn if you do not try. Having other people write your homework assignments for you will not get you anywhere.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Help library

    of 1 time to ask something and everyone dont to anything...what a forum ?
    support people that dont know i dont ask everyday for something..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width