so for the example that i gave before. Just say i had a function called get() which gets the details for a book.
i would have :
And write would be:
cout<<"what is the book's title"<<endl;
cout<<"Who is the book's Author"<<endl;
read(bookstream); //can i pass an ostream as an i stream?? how can i do this?
And then read would be:
Is this right?? If it is, I don't see why streaming should be used. Whats wrong with just asking the user for the title then storing it straight away?