Linux test merged.

This commit is contained in:
Vahagn Khachatryan
2013-02-22 23:48:24 +04:00
parent 16f2ae5f57
commit a730bde647
16 changed files with 747 additions and 269 deletions

View File

@@ -6,14 +6,11 @@ struct a
a()
: m(0)
{}
a( int e )
: m(e)
{}
//private:
// a( const a & _ )
// : m( _.m+1)
// {}
a( const a & _ )
: m( _.m+1)
{}
};
struct b : public a
@@ -26,10 +23,9 @@ struct b : public a
int main()
{
a o;
a o2 = o;
std::cout << o2.m << std::endl;
// std::cout << o2.m <<' '<<o2.n<< std::endl;
b o;
b o2 = o;
std::cout << o2.m <<' '<<o2.n<< std::endl;
return 0;
}