请教大家一个问题
初学c++设计一个通讯录,其中有一个Person类,充当链表结点,还有一个主函数。有报错:
--------------------Configuration: PhoneNumberList - Win32 Debug--------------------
Compiling...
test.cpp
c:\documents and settings\administrator\桌面\phonenumberlist\person.h(29) : error C2572: 'Person::Person' : redefinition of default parameter : parameter 3
c:\documents and settings\administrator\桌面\phonenumberlist\person.h(24) : see declaration of 'Person::Person'
c:\documents and settings\administrator\桌面\phonenumberlist\person.h(30) : error C2440: '=' : cannot convert from 'const char *' to 'char [20]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
c:\documents and settings\administrator\桌面\phonenumberlist\person.h(31) : error C2440: '=' : cannot convert from 'const char *' to 'char [20]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
Error executing cl.exe.
test.obj - 3 error(s), 0 warning(s)