为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

IOSTREAM头文件

2018-04-15 4页 doc 16KB 528阅读

用户头像

is_496339

暂无简介

举报
IOSTREAM头文件IOSTREAM头文件 /*** *iostream.h - definitions/declarations for iostream classes * * Copyright (c) 1990-1997, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines the classes, values, macros, and functions * used by the iostream classes...
IOSTREAM头文件
IOSTREAM头文件 /*** *iostream.h - definitions/declarations for iostream classes * * Copyright (c) 1990-1997, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines the classes, values, macros, and functions * used by the iostream classes. * [AT&T C++] * * [Public] * ****/ #if _MSC_VER > 1000 #pragma once #endif #ifdef __cplusplus #ifndef _INC_IOSTREAM #define _INC_IOSTREAM #if !defined(_WIN32) && !defined(_MAC) #error ERROR: Only Mac or Win32 targets supported! #endif #ifdef _MSC_VER // Currently, all MS C compilers for Win32 platforms default to 8 byte // alignment. #pragma pack(push,8) #include #endif // _MSC_VER /* Define _CRTIMP */ #ifndef _CRTIMP #ifdef _DLL #define _CRTIMP __declspec(dllimport) #else /* ndef _DLL */ #define _CRTIMP #endif /* _DLL */ #endif /* _CRTIMP */ typedef long streamoff, streampos; #include // Define ios. #include // Define streambuf. #include // Define istream. #include // Define ostream. #ifdef _MSC_VER // C4514: "unreferenced inline function has been removed" #pragma warning(disable:4514) // disable C4514 warning // #pragma warning(default:4514) // use this to reenable, if desired #endif // _MSC_VER class _CRTIMP iostream : public istream, public ostream { public: iostream(streambuf*); virtual ~iostream(); protected: iostream(); iostream(const iostream&); inline iostream& operator=(streambuf*); inline iostream& operator=(iostream&); private: iostream(ios&); iostream(istream&); iostream(ostream&); }; inline iostream& iostream::operator=(streambuf* _sb) { istream::operator=(_sb); ostream::operator=(_sb); return *this; } inline iostream& iostream::operator=(iostream& _strm) { return operator=(_strm.rdbuf()); } class _CRTIMP Iostream_init { public: Iostream_init(); Iostream_init(ios &, int =0); // treat as private ~Iostream_init(); }; // used internally // static Iostream_init __iostreaminit; // initializes cin/cout/cerr/clog #ifdef _MSC_VER // Restore previous packing #pragma pack(pop) #endif // _MSC_VER #endif // _INC_IOSTREAM #endif /* __cplusplus */
/
本文档为【IOSTREAM头文件】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索