Quote:
d:\bkpx\oop_cpp3\companypayroll.h(22) : error C2143: syntax error : missing ')' before ';'
d:\bkpx\oop_cpp3\companypayroll.h(22) : error C2664: 'Employee::Employee(const Employee &)' : cannot convert parameter 1 from 'std::basic_ostream<_Elem,_Traits>' to 'const Employee &'
with
[
_Elem=char,
_Traits=std::char_traits
]
Reason: cannot convert from 'std::basic_ostream<_Elem,_Traits>' to 'const Employee'
with
[
_Elem=char,
_Traits=std::char_traits
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called[/b]
ผิดเยอะครับ เอาแบบคร่าวๆ ลองเปลี่ยนเป็น