home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / streams / stream / stream.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-30  |  1.3 KB  |  48 lines

  1. //========================================================================
  2. //  The following example routines have been provided by the Technical
  3. //  Support staff at Borland International.  They are provided as a
  4. //  courtesy and not as part of a Borland product, and as such, are
  5. //  provided without the assurance of technical support or any specific
  6. //  guarantees.
  7. //========================================================================
  8. //
  9. //  stream.cpp
  10. //
  11. //  Note: this project uses gadgets.cpp and gadgets.h which are shipped 
  12. //  with Turbo Vision and can be found in the tvision\demos directory.
  13. //
  14.  
  15.  
  16. #define Uses_TApplication
  17. #define Uses_TMenuBar
  18. #define Uses_TRect
  19. #define Uses_TStatusLine
  20. #define Uses_TEvent
  21. #define Uses_fpstream
  22. #include <tv.h>
  23.  
  24.  
  25. #include <stdlib.h>             // For randomize() function
  26.  
  27. #include "gadgets.h"
  28. #include "myapp.h"              // Application class declaration.
  29.  
  30.  
  31. //
  32. // main:
  33. //      Here we declare an instance of the application object and call the
  34. //      run() member function to start of the program.  Usually, this will
  35. //      be all that is done here.
  36. //
  37.  
  38. int main()
  39. {
  40.     randomize();        // Start up random number generator.
  41.  
  42.     TMyApp myApp;
  43.  
  44.     myApp.run();
  45.  
  46.     return( 0 );
  47. }
  48.