C ++语言问题 [英] C++ language question
本文介绍了C ++语言问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么通过cout和cin打印或接受元素时我们不需要指定格式?
一些拼写更改
why we do not need to specify format when we print or accept element through cout and cin?
Some spelling changes
推荐答案
The << operator is overloaded. So, the compiler calls to the right function.
您不需要格式化任何内容.
您可以使用默认值.
对于特殊格式,必须指定格式. (Hmmm ... Rhymes:))
You do not need to format anything.
You can use the defaults.
For special formatting, you have to specify formatting. (Hmmm... Rhymes :))
因为cout的实现与printf ..:)
because cout has a different implementation than printf.. :)
这篇关于C ++语言问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文