#include <iostream>
#include <string>
using namespace std;
/*
class Circle
{
public:
int radius;
string name;
Circle(int radius=0)
{
this->radius = radius;
}
int getRadius()
{
return radius;
}
void setRadius(int radius)
{
this->radius = radius;
}
double getArea()
{
return 3.14*radius*radius;
}
// void show(){cout << "반지름이 " << radius << "인 " << name << endl;}
};
class NamedCircle:public Circle
{
public:
NamedCircle();
NamedCircle(int radius, string name);
};
NamedCircle::NamedCircle() {
}
NamedCircle::NamedCircle(int radius, string name)
{
this->radius = radius;
this->name = name;
}
class Cmp:public NamedCircle
{
public:
CircleCompare();
};
int Cmp::CircleCompare()
{
return radius;
}
int main()
{
//NamedCircle waffle(3, "waffle");
// waffle.show();
Cmp pizza[5];
for(int i=0; i<5; i++)
{
cout << i+1 << ">> ";
cin >> pizza[i].radius >> pizza[i].name;
}
int max = 0;
int loc = 0;
max = pizza[0].radius;
for(int i=0; i<5; i++)
{
if(pizza[i].radius > max)
{
max = pizza[i].radius;
loc = i;
}
}
cout << "가장 면적이 큰 피자는 " << pizza[loc].name << "입니다." << endl;
}
*/
/*
class product{
public:
int num;
string name;
string product;
int price;
Prodict();
Product(int num, string name, string product, int price){
this->num = num;
this->name = name;
this->product = product;
this->price = price;
}
int getNum(){return num;}
string getName() { return name; }
string getProduct() { return product; }
int getPrice() { return price; }
};
class Book: public product{
public:
string bookName;
string writer;
Book(){}
Book(string bookName, string writer, int num, string name, string product, int price){
this->bookName = bookName;
this->writer = writer;
this->num = num;
this->name = name;
this->product = product;
this->price = price;
}
void show();
string getBookName(){return bookName;}
string getWriter(){return writer;}
};
void Book::show(){
cout << "--- 상품ID : " << getNum() << endl;
cout << "상품설명 : " << getName() << endl;
cout << "생산자 : " << getProduct() << endl;
cout << "가격 : " << getPrice() << endl;
cout << "책제목 : " << bookName << endl;
cout << "저자 : " << writer << endl;
}
class CompactDisc: public Product{
};
class ConversationBook: public Book{
};
int main(){
}
*/