十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
#include
#include
using namespace std;
class Comma{
private:
int mvalue;
public:
Test ( int i ){
this->mvalue = i;
}
int value ( void ){
return mvalue;
}
};
Comma& operator , ( const Comma& a, const Comma& b ){
return const_cast (b);
}
void func ( Comma& i ){
cout << "func(): i = " << i.value() << endl;
}
int main ( int argc, char** argv ){
Comma t0(0);
Comma t1(1);
Comma tt = ( t0, t1 );
cout << tt.value() << endl;
system ( "pause" );
return 0;
}