<< " \t英寸; [英] << "\t";

查看:98
本文介绍了<< " \t英寸;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是一个快速:


as

cout<<结束;



cout<< " \ n";


是等价的

cout<< " \t";


??

谢谢

Mike

just a quickie:

as
cout << endl;
is to
cout << "\n";

is there an equivalent for
cout << "\t";

??
Thanks
Mike

推荐答案

2004年5月14日星期五15:46:29 +0000(UTC)comp.lang.c ++,迈克尔

< sl ** *********@hotmail.com>写道,
On Fri, 14 May 2004 15:46:29 +0000 (UTC) in comp.lang.c++, "Michael"
<sl***********@hotmail.com> wrote,
as
cout<< endl;
是为了cout<< " \ n";

是否等同于
cout<< " \t";
as
cout << endl;
is to
cout << "\n";

is there an equivalent for
cout << "\t";




不!如果有,那将比cout更邪恶<< endl;



No! And if there was, it would be even more evil than cout<<endl;




" Michael" < SL *********** @ hotmail.com>在消息中写道

新闻:c8 ********** @ hercules.btinternet.com ...

"Michael" <sl***********@hotmail.com> wrote in message
news:c8**********@hercules.btinternet.com...
只是一个快速:

作为
cout<< endl;
是为了cout<< " \ n";

是否等同于
cout<< " \t";

??
谢谢
Mike
just a quickie:

as
cout << endl;
is to
cout << "\n";

is there an equivalent for
cout << "\t";

??
Thanks
Mike




cout< < ENDL;与cout<<不同" \\\
英寸;因为第一个除了

做一个换行之外,还刷新输出



cout << endl; is not the same as cout << "\n"; because the first one besides
doing a new line, flushes the output as well




David Harmon ; <所以**** @ netcom.com.invalid>在消息中写道

news:40 *************** @ news.west.earthlink.net ...

"David Harmon" <so****@netcom.com.invalid> wrote in message
news:40***************@news.west.earthlink.net...
周五,2004年5月14日15:46:29 +0000(UTC)in comp.lang.c ++,Michael
< sl *********** @ hotmail.com>写道,
On Fri, 14 May 2004 15:46:29 +0000 (UTC) in comp.lang.c++, "Michael"
<sl***********@hotmail.com> wrote,
as
cout<< endl;
是为了cout<< " \ n";

是否等同于
cout<< " \t";
as
cout << endl;
is to
cout << "\n";

is there an equivalent for
cout << "\t";



不!如果有的话,它会比cout更邪恶<< endl;



No! And if there was, it would be even more evil than cout<<endl;




什么是关于endl的邪恶?我经常使用它。当

调试东西时,它特别有用,因为它刷新缓冲区,我知道流中没有任何内容,我还不能在我的控制台窗口中看到。


-Howard



What''s evil about endl? I use it a lot. It''s especially helpful when
debugging stuff, because it flushes the buffer and I know that there''s
nothing in the stream that I can''t yet see in my console window.

-Howard


这篇关于&LT;&LT; &QUOT; \t英寸;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆