#include
using namespace std;
class BaseClass
{
public:
BaseClass() {}
~BaseClass() {}
public:
virtual void print() = 0;
};
class Test : public BaseClass
{
private:
int m_nTest;
public:
Test(int n = 0):m_nTest(n) {}
~Test() {}
public:
virtual void print() {cout<
friend ostream& operator<<(ostream&,Test&);
};
istream& operator>>(istream& input,Test& test)
{
input>>test.m_nTest>>endl;
return input;
}
ostream& operator<<(ostream& output,Test& test)
{
output<
}
int main()
{
Test test;
cin>>test;
cout<
return 0;
}
简便计算
36×(1/4+5/6+2/9)
=36×1/4+36×5/6+36×2/9
=9+30+8
=47