i ++或++ i高效 [英] i++ or ++i efficient

查看:81
本文介绍了i ++或++ i高效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI all,

哪个更有效率i ++或++ i我为什么会这样?

欢呼..

HI all,
Which is more efficient i++ or ++i and why is it??
cheers..

推荐答案

* Radde:
哪个更高效i ++或++ i我为什么会这样?
Which is more efficient i++ or ++i and why is it??


<常见问题解答位于< url:http://www.parashift.com/c++-faq-lite/>。


-

答:因为它弄乱了人们通常阅读文字的顺序。

问:为什么这么糟糕?

A:Top -posting。

问:usenet和电子邮件中最烦人的是什么?



The FAQ is at <url: http://www.parashift.com/c++-faq-lite/>.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?




Alf P. Steinbach写道:

Alf P. Steinbach wrote:
* Radde:
哪个更高效i ++或++ i我为什么会这样?
Which is more efficient i++ or ++i and why is it??




The FAQ is at <url: http://www.parashift.com/c++-faq-lite/>.



这是您想要的部分:


< url:
http://www.parashift.com/c++-faq-lit...html# faq-13.15

/>


and this is the section you want:

<url:
http://www.parashift.com/c++-faq-lit...html#faq-13.15
/>


Radde写道:
HI全部,
哪个更高效i ++或++ i我为什么?
HI all,
Which is more efficient i++ or ++i and why is it??




如果你不得不问为什么这个问题,那么你不太了解

语言,需要担心它。


过早优化是所有邪恶的根源。 - 霍尔的法律



If you have to ask the question "why", then you don''t understand the
language enough to need to worry about it.

"Premature optimization is the root of all evil." -- Hoare''s Law


这篇关于i ++或++ i高效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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