//////#include <iostream>
//////
//////using namespace std;
//////
//////int main()
//////{
////// cout << "Hello world!" << endl;
////// return 0;
//////}
////
////#include <iostream>
////#include <cstring>
////using namespace std;
////class Person
////{
//// char* name;
//// int id;
////public:
//// Person(int id, const char* name);
//// Person(const Person& person);
//// ~Person();
//// void change(const char *name,int id);
//// void show()
//// {
//// cout << id << ',' <<name << endl;
//// }
////};
////Person::Person(int id, const char* name)
////{
//// this->id=id;
//// int len = strlen(name);
//// this->name = new char [len+1];
//// strcpy(this->name,name);
////}
////Person::Person(const Person& person)
////{
//// this->id=person.id;
//// int len = strlen(person.name);
//// this->name = new char [len+1];
//// strcpy(this->name,person.name);
//// cout << "복사생성자 실행 원본 객체의 이름 " << this->name << endl;
////}
////Person::~Person()
////{
//// if(name)
//// delete [ ] name;
////}
////void Person::change(const char* name,int id)
////{
//// if(strlen(name)>strlen(this-> name))
//// return;
//// strcpy(this->name,name);
//// this->id=id;
////
////}
////int main()
////{
//// Person father(1,"Kitae");
//// Person daughter(father);
////
//// cout<< "daughter 객체 생성 이후- ----" << endl;
//// father.show();
//// daughter.show();
////
//// daughter.change("Grace",2);
//// cout << "daughter 이름을 Grace로 변경 후 " << endl;
//// father.show();
//// daughter.show();
////
//// return 0;
////}
//
//#include <iostream>
//#include <cstring>
//using namespace std;
//class Person{
// char* name;
//public:
// Person(const char* name);
// Person(const Person& person);
// ~Person();
// void change(const char* name);
//
//};
//Person::Person(const char* name)
//{
// int len = strlen(name);
// this->name = new char [len+1];
// strcpy(this->name,name);
//}
//Person::Person(const Person& person)
//{
// int len = strlen(person.name);
// this->name = new char [len+1];
// strcpy(this->name,person.name);
//}
//Person::~Person()
//{
// if(name)
// delete [ ] name;
//}
//void Person::change(const char* name)
//{
// if(strlen(name)>strlen(this-> name))
// return;
// strcpy(this->name,name);
//
//}
//void f(Person person)
//{
// person.change("dummy");
//}
//Person g()
//{
// Person mother("Jane");
// return mother;
//}
//int main()
//{
// Person father("Kitae");
// Person son=father;
// f(father);
// g();
//}
/////////////////////////////////#2
//#include <iostream>
//using namespace std;
//void half(double &n)
//{
// n=n/2;
//}
//int main()
//{
// double n=20;
// half(n);
// cout << n;
//}
///////////////////////////////////////#4
//#include <iostream>
//using namespace std;
//bool bigger(int a, int b, int& big)
//{
// if(a==b)
// return true;
// else if(a>b)
// {
// big=a;
// return false;
// }
// else
// {
// big=b;
// return false;
// }
//}
//int main()
//{
// int big=0,a,b;
// cin >> a >> b;
// if(bigger(a,b,big)==0)
// cout << big;
//}
/////////////////////////////////////////////////////////////////#6
//#include <iostream>
//#include <cstring>
//using namespace std;
//char& find(char a[],char c, bool& success)
//{
// int len=strlen(a);
// for(int i=0;i<len;i++)
// {
// if(a[i]==c)
// {
// success=true;
// return a[i];
// }
// }
//
//}
//int main()
//{
// char s[] = "Mike";
// bool b = false;
// char& loc = find(s,'M',b);
// if(b==false)
// {
// cout << "M을 발견할 수 없다 " << endl;
// return 0;
// }
// loc = 'm';
// cout << s << endl;
//}
#include <iostream>
using namespace std;
class MIS{
int *p;
int size;
int tos;
public:
MIS();
MIS(int size);
MIS(const MIS& s);
~MIS();
bool push(int n);
bool pop(int &n);
};
MIS::MIS()
{
size=0;
tos=0;
p= new int [size];
}
MIS::MIS(int size)
{
this->size=size;
}
MIS::MIS(const MIS& s)
{
s=s.size;
}
MIS::~MIS(){ }
bool MIS::push(int n)
{
}
bool MIS::pop(int &n)
{
}
int main()
{
MIS a(10);
a.push(10);
a.push(20);
MIS b = a;
b.push(30);
int n;
a.pop(n);
cout << "스택 a에서 팝한 값 " << n << endl;
cout << " 스택 b에서 팝한 값" << n << endl;
}



