Description: 3. Write a program: Define a Person class requirements: ① private member data: ● char ID [20] // ID number ● char* name // store name starting address dynamic character array ● char* address // store address the dynamic character array starting address ② public member functions: ● Person (char* n = 0, char* na = 0, char* ad = 0) // constructor ● Person (Person & p) // copy constructor, to achieve deep copy ● ~ Person () // destructor ● Person & operator = (Person & p) // achieve deep assignment ● void show () // output data ③ members write main ( ) function of the Person class to be tested.
To Search:
File list (Check if you may need any files):
Array\array.cpp
.....\Array.dsp
.....\Array.dsw
.....\array.h
.....\Array.ncb
.....\Array.opt
.....\Array.plg
.....\Array.sdf
.....\Array.sln
.....\Array.v12.suo
.....\Array.vcxproj
.....\Array.vcxproj.filters
.....\Backup1\Array.sln
.....\.......\Array.v12.suo
.....\Debug\Array.exe
.....\.....\Array.ilk
.....\.....\Array.log
.....\.....\array.obj
.....\.....\Array.pdb
.....\.....\......tlog\Array.lastbuildstate
.....\.....\..........\CL.read.1.tlog
.....\.....\..........\CL.write.1.tlog
.....\.....\..........\link.read.1.tlog
.....\.....\..........\link.write.1.tlog
.....\.....\vc120.idb
.....\.....\vc120.pdb
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\UpgradeLog.htm
.....\UpgradeLog2.htm
.....\Debug\Array.tlog
.....\Backup
.....\Backup1
.....\Debug
Array