158                                    6.    

_ ( )

        .  -
 ,     ,  
.

6.1.3.   

       -
,         explicit. 
 ,         -
 ASCII; ,     07    (-
 ).

  printabl.cpp

//  ASCII

class pr_char {
public:

pr_char(int i = 0) : c(i % 128) {}

void print() const { cout  rep[c]; }
private:

int    c;

static const char* rep[128];

};

const char* pr_char::rep[128] = { "nul", "son", "stx",

"w", "x", "y", "z", "{", "I", "}", "~", "del" };

int main()
{

pr_char  ;

for (int i = 0; i < 128; ++i) {

 = i;   //: c=static_cast<pr_char>(i)
.print() ;

cout  endl ;

}

i

     int   pr_char.
,    

 = i ;

       .    
.       7, Ad hoc -
.         -
,  ,        ,   -
 .