/*
#include <iostream>
using namespace std;
class person
{
int id;
double weight;
string name;
public:
person(int i=1,string n="grace",double w=20.5)
{
this->id=i;
this->name=n;
this->weight=w;
}
void show()
{
cout << id <<' '<< weight <<' '<< name <<endl;
}
};
int main()
{
person grace,ashely(2,"ashely"),helen(3,"helen",32.5);
grace.show();
ashely.show();
helen.show();
}
*/
/*
#include <iostream>
using namespace std;
int big(int a,int b,int c=100)
{
if (c<=100&&b<=100&&a<=100)
{
if (a<b<c&&c<100)
{
return c;
}
else if (a<c<b&&b<100)
{
return b;
}
else if (c<a<b&&b<100)
{
return b;
}
else if (c<b<a&&a<100)
{
return a;
}
else if (b<a<c&&c<100)
{
return c;
}
else if (b<c<a&&a<100)
{
return a;
}
}
else
{
return 100;
}
}
int main()
{
int x = big(3,5);
int y = big(300,60);
int z = big(30,60,50);
cout << x << ' ' << y << ' ' << z <<endl;
}
*/
/*
#include <iostream>
using namespace std;
class mv
{
int *m;
int size;
public:
mv(int n=100,int k=size)
{
m=new int [n];
for (int i=0; i<k; i++)
{
m[i]=k;
}
delete []m;
}
};
int main() {
mv v = new mv;
}
*/
/*
#include <iostream>
using namespace std;
class au2
{
int size;
public:
au2()
{
}
void setnum(int s[])
{
}
static int* concat(int s1[],int s2[],int size)
{
}
static int* remove(int s1[],int s2[],int size,int& retsize)
{
}
};
int main()
{
int k;
cout << "5개 입력하라. 배열 x에 삽입한다 >>";
cin >> au2::*concat(k);
cout << "5개 입력하라. 배열 y에 삽입한다 >>";
cin >> q[i];
}
*/
#include <iostream>
#include <string>
using namespace std;
class board
{
public:
static int x;
static string s;
static string add(string s1)
{
s.append("x: ").append(s1).append("\n");
x++;
}
static string print()
{
cout << s << endl;
}
};
int board::x = 0;
string board::s = "------게시판------\n";
int main()
{
board::add("중");
board::add("코");
board::print();
board::add("경");
board::print();
}