////////#include <iostream>
////////
////////using namespace std;
////////
////////int main()
////////{
//////// cout << "Hello world!" << endl;
//////// return 0;
////////}
//////#include <iostream>
//////
//////#include <string.h>
//////
//////#include <ctype.h>
//////
//////
//////using namespace std;
//////
//////class histogram{
//////
//////public:
//////
////// void put(string str);
//////
////// void putc(char c);
//////
////// void print();
//////
//////
//////};
//////
//////void histogram::put()
//////
//////{
//////
//////}
//////
//////void histogram::putc()
//////
//////{
//////
//////
//////}
//////
//////int main()
//////
//////{
//////
////// histogram histo;
//////
////// string str2;
//////
////// getline(cin,str2);
//////
////// int len;
//////
////// len=str2.length();
//////
//////
////// if(isalpha(str2))
//////
////// {
////// histo.put();
////// }
//////
////// else histo.putc();
//////
////// for(int i=0;i<len;i++)
//////
////// {
//////
////// str2[i]=tolower(str2[i]);
//////
////// }
//////
////// histogram elvisHisto()
//////
////// cout << str2;
//////
//////}
////#include <iostream>
////#include <string.h>
////using namespace std;
////class histogram
////{
//// string arr;
//// int h[26] = {};
////public:
//// histogram(string arr){this->arr=arr;}
//// histogram() {this->arr ="";}
//// void put(string his);
//// void putc(char hh);
//// void print();
////};
////void histogram::put(string his)
////{
//// this->arr.append(his);
////
////}
////void histogram::putc(char hh)
////{
//// char buf[]={hh,'\0'};
//// this->arr.append(buf);
////}
////void histogram::print()
////{
//// for(int i = 0; i<26; i++)
//// {
//// h[i]=0;
//// }
//// cout << arr << endl;
//// for(int i = 0; i<arr.length(); i++)
//// {
//// if(isalpha(arr[i]))
//// {
//// char c = tolower(arr[i]);
//// h[c-'a']++;
//// }
//// }
//// int n=0;
//// for(int i=0;i<26;i++)
//// {
//// n+=h[i];
////
//// }
//// cout << "총 알파벳 수 " << n << endl;
//// for(int i = 0; i <26; i++)
//// {
//// cout << (char)(i+'a') << "(" << h[i] << ") " << ": ";
//// for(int j=0; j<h[i]; j++)
//// {
//// cout << '*';
//// }
//// cout << endl;
//// }
////}
////int main()
////{
//// histogram elvisHisto("Wise men say, only fools rush in But I can't help, ");
//// elvisHisto.put("falling in love with you");
//// elvisHisto.putc('-');
//// elvisHisto.put("Elvis Presley");
//// elvisHisto.print();
////
////}
////
////
#include <iostream>
using namespace std;
class C{
private:
int radius;
public:
C();
C(int ra);
~C();
double getArea() { return 3.14*3.14*radius;}
int getRadius() { return radius;}
void sett(int radius) {this ->radius=radius;}
};
C::C()
{
radius=1;
cout << "생성자 실행 radius = " << radius << endl;
}
C::C(int ra)
{
this->radius=ra;
cout << "생성자 실행 radius = " << radius << endl;
}
C::~C()
{
cout << "소멸자 실행 radius = " << radius << endl;
}
void increase(C c)
{
int r=c.getRadius();
c.sett(r+1);
}
int main()
{
C waffle(30);
increase(waffle);
cout << waffle.getRadius() << endl;
}
//#include <iostream>
//using namespace std;
//void swap(int a,int b)
//{
// int tmp;
// tmp=a;
// a=b;
// b=tmp;
//}
//int main()
//{
// int n=9,m=2;
// swap(m,n);
// cout << m << ' ' << n;
//}



