#include<iostream>
using namespace std;
class anik
{
private :
string nam;
public :
void rob(string x)
{
nam = x;
}
string aubdur()
{
return nam;
}
};
int main()
{
anik ar;
string str;
getline(cin, str);
ar.rob(str);
cout << endl << ar.aubdur() << endl;
return 0;
}
using namespace std;
class anik
{
private :
string nam;
public :
void rob(string x)
{
nam = x;
}
string aubdur()
{
return nam;
}
};
int main()
{
anik ar;
string str;
getline(cin, str);
ar.rob(str);
cout << endl << ar.aubdur() << endl;
return 0;
}
Comments
Post a Comment