    38: }
    39: 
    40:	long operator-(TStrOp a, TStrOp b) 
    41:	{ 
    42:	return (atol(a.value) - atol(b.value)); 
    43:	} 

     STROPS      : 

    Value of a == 1234 
    Value of b == 4321 
    a + b + 6 == 5561 
    a - b + 10 == -3077 

               
 ,   main().   18-19   
  TStrOp    b.      
     : 

    TStrOp a("1234"); TStrOp b("4321"); 

               
 ,    23  24     
 : 

    ( + b + 6) 
    ( - b + 10) 

              ; 
    C++  ,     
  . 
      ,    12-13,  
        TStrOp.  
  ,       ZZ. ,  
     .    
    (    ),   
 ,    .   ,   
  ,     . 
          35-43.  
      ,    
    C++.     
    operator+  operator-,    
 ,        
 TStrOp. 
        ,       
   TStrOp.     
 -     b   .  
       atol 
(ASCII to long),       STDLIB.H. 
       . 

      - 

         ,     
 15.5.     STROPS.CPP ( 15.4),    
   - . 

     15.5.  STROPS2.CPP (  -) 

    1:	#include <iostream.h> 
    2:	#include <stdlib.h> 
    3: 
    4:	#include <string.h>	
    5:	class TStrOp { 
    6:	private: 
    7:	   char value[12]; 
    8:	public: 
    9:	   TStrOp ()  { value[0] = 0;   } 
    10:	   TStrOp(const char *s); 
    11:	    long GetValue(void) { return atol(value);   } 
    12:	    long operator+(TStrOp b); 
    13:	    long operator-(TStrOp b); 
    14:	}; 
    15: 
    16:	main() 
    17:	{ 
    18:	  TStrOp a = "1234"; 
    19:	  TStrOp b = "4321"; 


    374      III.   ANSI C++ 
