prog.cpp: In member function 'void book::accept()':
prog.cpp:22:14: error: 'gets' was not declared in this scope
gets(bookname);
^
prog.cpp: In member function 'void book::display()':
prog.cpp:37:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
puts(bookname)<<endl;
^
prog.cpp:38:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
puts(isbn)<<endl;
^
prog.cpp:39:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
puts(author)<<endl;
^
prog.cpp:40:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
puts(category)<<endl;
^
prog.cpp: In function 'int main()':
prog.cpp:55:1: error: a function-definition is not allowed here before '{' token
{
^
prog.cpp:74:2: error: expected '}' at end of input
}
^