关于便准c++类库iostream的一个问题。

kofwr kofwr 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#include <iostream>
using namespace std;

int main(){
int int1,int2,sum;
std::cout<<"Input the first Integer\n";
std::cin>>int1;
cout<<"Input the second Integer\n";
cin>>int2;
sum=int1+int2;
cout<<"The sum is "<<sum<<endl;
return 0;
}
请问为什么#include <iostream>后,可以直接用endl,我查了MSDN中标准c++类库的文档,这个endl属于哪个head?我看MSDN中iostream里面没有包括这个,只有cerr,cin,clog,cout,wcerr,wcin,wclog,wcout

3Q
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
kofwr
VC/MFC 16,550 成员 421,606 内容