Category : Files from Magazines
Archive   : CUJ9405.ZIP
Filename : IOSCOPY.C

 
Output of file : IOSCOPY.C contained in archive : CUJ9405.ZIP


----------------- Listing 8: The ios copy constructor --------------

// ioscopy -- ios::ios(const ios&)
#include

ios::ios(const ios& rhs)
{ // construct an ios from copy
init(0);
*this = rhs;
}