C ++中std :: cout语句的深度 [英] depth in std::cout statement in C++
本文介绍了C ++中std :: cout语句的深度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#include< iostream.h>
使用命名空间std;
int main()
{
std :: cout<< 测试申请:<< std :: endl;
返回0;
}
std :: cout和std :: endl如何在内部工作。 测试应用程序如何在控制台应用程序中打印。
问候,
Ranjith
Hi,
#include<iostream.h>
using namespace std;
int main()
{
std::cout<<"test application:"<<std::endl;
return 0;
}
How std::cout and std::endl is working internally. How "test application" is printing in console application.
Regards,
Ranjith
推荐答案
查看包含文件。
cout
最终映射到STDOUT
,默认情况下是映射到控制台的io流之一。这是一个系统调用来处理这个映射。
干杯
Andi
Have a look into the include files.
cout
finally maps intoSTDOUT
, which is one of the io streams that maps to the console by default. It's a system call that takes care of this mapping.
Cheers
Andi
参见http://msdn.microsoft.com/en-us/library/h07e2k12.aspx [ ^ ]。
这篇关于C ++中std :: cout语句的深度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文