home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / SAMPLES / CPPTUTOR / SAVINGS.CP$ / SAVINGS
Encoding:
Text File  |  1991-11-11  |  294 b   |  14 lines

  1. // SAVINGS.CPP
  2. #include "savings.h"
  3. #include <string.h>
  4.  
  5. // Initialize private static member at file scope
  6. float SavingsAccount::currentRate = 0.0001;
  7.  
  8. SavingsAccount::SavingsAccount( const char *nm, float tl )
  9. {
  10.     strncpy( name, nm, 30 );
  11.     name[29] = '\0';
  12.     total = tl;
  13. }
  14.