#include <iostream>
using namespace std;
class Book
{
public:
string title;
string author;
int price;
int pages;
};
int main ()
{
Book book1;
book.title= "C++ level 1";
book1.author= "Sara";
book1.price=10;
book1.pages=100;
cout<< "Book1"<<endl;
cout<< "Book1 title"<<book1.title<<endl;
return0;
}
06 2月 2024, 06:18
