everest% CC des7.C record2.C
des7.C:
record2.C:
everest% 

everest% a.out
Alternate Constructor: this=ffffffadb8, s=(10012252,"S"),str=(10013010,"S")
Default Constructor: this=ffffffadc0
Identify S: id: this=ffffffadb8, str=(10013010,"S")
Identify P: id: this=ffffffadc0, str=(0,"(null)")

Do Assignment
Alternate Constructor: this=ffffffad58, s=(10012250,"R"),str=(10013020,"R")

Identify T: id: this=ffffffadb0, str=(10013010,"S")

Identify R: id: this=ffffffad58, str=(10013020,"R")
Destructor: this=ffffffad58, str=(10013020,"R")
Destructor: this=ffffffadb0, str=(10013010,"S")
Finished Assignment

str1=(10013010,"Hello")
str2=(10013020,"World")
Identify S: id: this=ffffffadb8, str=(10013010,"Hello")
Identify P: id: this=ffffffadc0, str=(10013020,"World")


End of main()

Destructor: this=ffffffadc0, str=(10013020,"World")
Destructor: this=ffffffadb8, str=(10013010,"Hello")
everest% 


everest% g++ des7.C record2.C
everest% 

everest% a.out
Alternate Constructor: this=7fff2ed8, s=(100000b4,"S"),str=(10000350,"S")
Default Constructor: this=7fff2edc
Identify S: id: this=7fff2ed8, str=(10000350,"S")
Identify P: id: this=7fff2edc, str=(0,"(null)")

Do Assignment
Alternate Constructor: this=7fff2ea8, s=(10000090,"R"),str=(10000360,"R")

Identify T: id: this=7fff2ec4, str=(10000350,"S")

Identify R: id: this=7fff2ea8, str=(10000360,"R")
Destructor: this=7fff2ea8, str=(10000360,"R")
Destructor: this=7fff2ec4, str=(10000350,"S")
Destructor: this=7fff2ee8, str=(10000360,"R")
Finished Assignment

str1=(10000360,"Hello")
str2=(10000360,"World")
Identify S: id: this=7fff2ed8, str=(10000350,"^P")
Identify P: id: this=7fff2edc, str=(10000360,"World")


End of main()

Destructor: this=7fff2edc, str=(10000360,"World")
Destructor: this=7fff2ed8, str=(10000350,"^P")
everest% 
