#include <iostream.h>
class value
{
int m,n;
public:
value(int,int);
void display(void)
{
cout << "m=" << m << '\n';
cout << "n=" << n << '\n';
}
};
value :: value (int x, int y)
{
m =x; n =y ;
}
int main ()
{
value int1(0,100);
cout << "Initialized values" << '\n';
int1.display();
return 0;
}
class value
{
int m,n;
public:
value(int,int);
void display(void)
{
cout << "m=" << m << '\n';
cout << "n=" << n << '\n';
}
};
value :: value (int x, int y)
{
m =x; n =y ;
}
int main ()
{
value int1(0,100);
cout << "Initialized values" << '\n';
int1.display();
return 0;
}
Output
Initialized values
m=0
n=100
m=0
n=100