home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / LIBMAT.ZIP / MATRIXIO.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-16  |  1.5 KB  |  75 lines

  1. /***************************************************/
  2. /* matrixio.hpp header for MatClass I/O functions  */
  3. /***************************************************/
  4.  
  5.  
  6. /**************************************************/
  7. /*            MatClass Source File                */
  8. /*       Copyright of C. R. Birchenhall           */
  9. /*       University of Manchester, UK.            */
  10. /*   MatClass is freeware. This file should be    */
  11. /* made freely available to users of any software */
  12. /* whose creation is wholly or partly dependent   */
  13. /*                on this file.                   */
  14. /**************************************************/
  15.  
  16. #ifndef MATRIX_H
  17. #include "matrix.hpp"
  18. #endif // ndef MATRIX_H
  19.  
  20. #define NOSTREAMS       4
  21.  
  22. #ifndef IOSTREAM
  23.  
  24. #ifdef __TURBOC__
  25. #define IOSTREAM
  26. #endif
  27.  
  28. #endif
  29.  
  30. #ifdef IOSTREAM
  31. #include <iostream.h>
  32. #include <fstream.h>
  33. #include <iomanip.h>
  34.  
  35. extern ofstream* ofile[ NOSTREAMS ] ;
  36. extern ifstream* ifile[ NOSTREAMS ] ;
  37.  
  38. #else
  39.  
  40. #include <stream.h>
  41.  
  42. extern filebuf* ofbuf[ NOSTREAMS ] ;
  43. extern ostream* ofile[ NOSTREAMS ] ;
  44. extern filebuf* ifbuf[ NOSTREAMS ] ;
  45. extern istream* ifile[ NOSTREAMS ] ;
  46.  
  47.  
  48. #endif
  49.  
  50. #ifndef MATRIXIO_H
  51.  
  52. #define MATRIXIO_H
  53.  
  54.  
  55. extern ostream & operator << ( ostream &s, matrix &x ) ;
  56.  
  57. /**************************************************/
  58. /*  iomatrix.hpp header for iomatrix.cpp          */
  59. /**************************************************/
  60.  
  61. // File Error Values
  62.  
  63. #define FTYPE        0
  64. #define FOPEN        1
  65. #define NFILE        2
  66. #define FFAIL        3
  67.  
  68. #endif
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.