home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / tutorial / welcome / imp.cpp next >
Encoding:
C/C++ Source or Header  |  1996-01-16  |  2.0 KB  |  37 lines

  1. /*+--------------------------------------------------------------------------+*/
  2. /*|                                                                          |*/
  3. /*| PROGRAM NAME: OVIEW                                                      |*/
  4. /*| -------------                                                            |*/
  5. /*|  A simple program used with VisualAge for C++ components and WorkFrame   |*/
  6. /*|                                                                          |*/
  7. /*| COPYRIGHT:                                                               |*/
  8. /*| ----------                                                               |*/
  9. /*|  Copyright (C) International Business Machines Corp., 1996.              |*/
  10. /*|                                                                          |*/
  11. /*| DISCLAIMER OF WARRANTIES:                                                |*/
  12. /*| -------------------------                                                |*/
  13. /*|  The following [enclosed] code is sample code created by IBM Corporation.|*/
  14. /*|  This sample code is not part of any standard IBM product and is provided|*/
  15. /*|  to you solely for the purpose of assisting you in the development of    |*/
  16. /*|  your applications.  The code is provided "AS IS", without warranty of   |*/
  17. /*|  any kind.  IBM shall not be liable for any damages arising out of your  |*/
  18. /*|  use of the sample code, even if they have been advised of the           |*/
  19. /*|  possibility of such damages.                                            |*/
  20. /*|                                                                          |*/
  21. /*+--------------------------------------------------------------------------+*/
  22.  
  23. #include <string.h>
  24. #include <iostream.h>
  25. #include "teststrg.hpp"
  26.  
  27. void TString::setString(char tname[])
  28.    {
  29.    strcpy(testString, tname);
  30.    }
  31. void TString::showString()
  32.    {
  33. //   cout << "Test String = " <<testString << endl;
  34.    cout <<testString << endl;
  35.    }
  36.  
  37.