#include <iostream>
using std::cout;
using std::endl;
class Test {
int n;
public:
Test(int x) {
n = x;
}
Test(char *s) {
n = atoi(s);
}
int f() {
return n;
}
};
int main()
{
Test o1 = 43;
Test o2 = "982";
cout << o1.f() << endl;
cout << o2.f() << endl;
return (0);
}
/*
run:
43
982
*/