eijiogata / Publications
Forum
[CLOSED] OOP : copy constructor and operator=() incorrect behavior
please suggest where wrong coding rules in this code. when I written below class. foo2, foo3 called unexpected copy constructor and operator=() each objects. execution result paste in below. class foo{ public : string s; foo( string a) { s = a; printf ( "foo constructor [%s]" , a); } foo(