what's the type of this class member a?
My code is :
typedef double Money;
class Person
{
Money get(){return a;}
private:
typedef long double Money;
Money a;
};
I define this class, I want to know the type of a: double or long double?
the return type of function get() is double, is it right?
No comments:
Post a Comment