istream不是std的成员

如果报错信息为:istream不是std的成员,那么有两种可能

1.没有包含iostream库文件

2.#ifndef 和#endif使用错误,致使包含的iostream的头文件没有被主函数包含

原文地址:https://www.cnblogs.com/hi3254014978/p/10141500.html