this is my code:
#include <iostream>
using namespace std;
class Sp
{
private :
int a;int b;
public:
Sp(int x=0,int y=0):a(x),b(y){};
int max(int x,int y);
};
int Sp::max(int a,int b)
{ return (a>b?a:b);};
int main()
{
int q,q1;
cin>>q>>q1;
Sp *mm=new Sp(q,q1);
cout<< mm.max(q,q1);
return 0;
}
now,i have two form,called form1 and form2,in the form1 there's a button,when i click it,then open the form2
question: in the form2,i want to creat a button when i click it,the form2 close and the form1 close.how to do?
thx