-
Dec 12th, 2012, 04:34 AM
#1
Thread Starter
Fanatic Member
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
-
Dec 13th, 2012, 04:55 AM
#2
Re: C++ Help library
Is this homework of some kind? Have you got anything so far?
-
Dec 13th, 2012, 01:44 PM
#3
Thread Starter
Fanatic Member
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
-
Dec 14th, 2012, 02:50 AM
#4
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?
-
Dec 14th, 2012, 03:44 AM
#5
Thread Starter
Fanatic Member
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.
-
Dec 14th, 2012, 03:53 AM
#6
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.
-
Dec 14th, 2012, 03:59 AM
#7
Thread Starter
Fanatic Member
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
-
Dec 14th, 2012, 08:39 AM
#8
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!
-
Dec 14th, 2012, 09:01 AM
#9
Thread Starter
Fanatic Member
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
-
Dec 15th, 2012, 02:52 AM
#10
Thread Starter
Fanatic Member
Re: C++ Help library
someone will help today is the last day please help me
-
Dec 15th, 2012, 11:17 AM
#11
Re: C++ Help library
What kind of help are you expecting to get? Should someone write the entire project for you?
-
Dec 15th, 2012, 11:21 AM
#12
Thread Starter
Fanatic Member
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
-
Dec 16th, 2012, 06:03 AM
#13
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.
-
Dec 16th, 2012, 06:57 AM
#14
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|