#include<conio.h>
#include<iostream>
struct book

int bookid;
char title;
float price;
display(book);
book input();
;

int main()

book b1;
b1=input();
display(b1);

display(book b)

std::cout<<"\n"<<b.bookid<<" "<<b.title<<" "<<b.price;

book input(book b)

book b;
std::cout<<"Enter Bookid,Title,Price :";
std::cin>>b.bookid>>b.title>>b.price;
return(b);

error: 1st : error: 'input' was not declared in this scope
2nd : error: 'display' was not declared in this scope
3rd : error: declaration of 'book b' shadows a parameter

The code is poorly formatted so I can't tell if it's something with a semicolon or something else.

Next time use the Code Block tool in the editor when pasting code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.