Quote:Original post by NCLR I have question in regarding c++. iam trying to make a 'library' prog using a switch statement to do the following things :- 1) To enter books into library 2) To display them 3) To delete any one of them 4) To issue a book (just by asking the user various information such as name,library card number,book's name,author's name etc...) 5) To display them 6) To delete any one of them 7) Search for a book
Its a project which iam doing for school. I used a class for enetring and displaying.Deleting i can do in 'void main()'. i want these information saved "permenantly" in a file.But i dont how to that. any suggesstions anyone? |
Quote:Original post by londonman hello any tutors i need help on workshop 1 nobody is helping me |
Uh... guys, there's sort of a set agenda in this thread :
kimi: It's so you can separate your code out into several files, for organizational purposes. (BTW, '#include' is not "a function"; it's a preprocessor directive.)
twoaterisn: Like FireNet said. Except, don't include .cpp files! You *can* include any kind of file, but it won't necessarily produce something that compiles ;)
You really want to read
this on the subject of organizing source code files. But we should get back to functions, yes? :)
P.S. 'addition' sounds wrong as a function name. Consider either 'add' (imperative) or 'sum' (descriptive of the result, rather than the process).