1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
struct BOOK
{
string NAME;
int YEAR;
int PAGES;
string FIRSTNAME;
string LASTNAME;
string LANGUAGE;
bool READ;
int SCORE;
// constructor
BOOK( const string name, int year, int pages, string firstname, string lastname, string language, bool read, int score )
: NAME(name), YEAR( year ), PAGES( pages ), FIRSTNAME( firstname ), LASTNAME( lastname ), LANGUAGE( language ), READ( read ), SCORE( score ) {}
};
int main()
{
fstream library;
library.open ("library.txt");
return 0;
}
|