的示例是什么,它的用途是什么? [关闭]

问题描述 投票:-3回答:1
所以我一直在搜索c ++中istream的用法,但找不到任何来源

#include<istream> using namespace std; int main(){ }

c++ header istream
1个回答
0
投票
流基类在istream中定义。

如果仅使用在其他位置创建的流,则只需包含istream

如果要创建一个流,通常将包含一种派生流类型的标头。例如:

<istream>

<sstream>

<sstream>

© www.soinside.com 2019 - 2024. All rights reserved.