⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 standio.hpp

📁 面向对象的卡尔曼滤波器源码
💻 HPP
字号:
// standio.hpp		A pair of classes to handle I/O from EITHER a//			named file OR STDIN/STDOUT//	tested on MSDOS with Zortech C++ 3.0		Borland C++ 3.0//	       on Unix  with AT&T 2.1 on MIPS and SGI Indigo workstations//                      (c) Copyright 1995, Everett F. Carter Jr.//                      Permission is granted by the author to use//			this software for any application provided this//			copyright notice is preserved.// rcsid: @(#)standio.hpp	1.7 13:59:31 3/24/95   EFC#ifndef STANDARD_IO_HPP_#define STANDARD_IO_HPP_ 1.7#include <iostream.h>#ifdef __ZTC__#include <fstream.hpp>#ifndef LOCAL_FILEBUF		/* Zortech MUST have this define ON */#define LOCAL_FILEBUF#endif#else#include <fstream.h>#endifclass Stdin : public ifstream{	private:          char *fname;#ifdef LOCAL_FILEBUF	  filebuf InputFile;#endif	  int do_open_input(char* infile, int mode = ios::in );          void open_input(int *argc, char **argv, int mode);         public:          Stdin(int *argc, char **argv, int mode = 0);          Stdin(char* infile = NULL, int mode = 0);         ~Stdin() { if (fname) close(); }	  const char* name() const;                                     };class Stdout : public ofstream{	private:          char *fname;#ifdef LOCAL_FILEBUF	  filebuf OutputFile;#endif	  int  do_open_output(char* outfile, int mode = ios::out );	  void open_output(int *argc, char **argv, int mode);        public:          Stdout(int *argc, char **argv, int mode = 0);          Stdout(char* outfile = NULL, int mode = 0);         ~Stdout() { flush(); if ( fname ) close(); }	  const char* name() const;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -