void function() {ofstream o; char ch; o.open("abc.txt",ios::out|ios::app); do { system ("cls"); bk.create_book(); //create_book is a function in the class by the name of "book"// o.write((char*)&bk,sizeof(book)); //bk is an object of the class "book"// cout<<"\n\nDo you want to add more record..(y/n?)"; cin>>ch; }while(ch=='y'||ch=='Y'); o.close(); }
sizeof
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)