C ++:固有的冲突 [英] C++: inherent conflict

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

问题描述




问题:为什么在C ++中不妥协的效率和可移植性之间存在固有的冲突?

问候

WD


---

外发邮件已通过无病毒验证。

由AVG检查反病毒系统( http://www.grisoft.com)

版本:6.0.504 /病毒数据库:302 - 发布日期:24/07/2003

Hi,

Question: Why is there an inherent conflict between uncompromising
efficiency and portability in C++?
Regards
WD

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003

推荐答案

Web Developer写道:
Web Developer wrote:


问题:为什么在C ++中不妥协的效率和可移植性之间存在固有的冲突?
Hi,

Question: Why is there an inherent conflict between uncompromising
efficiency and portability in C++?




家庭作业?


我不知道这样的冲突。效率的重要性大多数时候都被夸大了。好的设计更重要,而且b $ b提供了更多的优势。一个快速的程序有什么用,如果它有问题,迟到,

并且无法维护?另一方面,精心设计的程序

可以更容易地进行优化(假设有需要 - 精心设计的

软件应该从一开始就非常有效),如果需要,可以移植到
更快的硬件。好的设计(几乎)给出了所有

世界中最好的。 * *应该是你的重点,而不是效率。


-Kevin



Homework?

I''m not aware of such a conflict. And the importance of efficiency is
very overstated most of the time. Good design is much more important and
offers more advantages. What good is a fast program if it''s buggy, late,
and impossible to maintain? On the other hand, a well-designed program
can be optimized more easily (assuming there''s a need - well-designed
software should be very efficient from the start), and can be ported to
faster hardware if needed. Good design gives (nearly) the best of all
worlds. *That* should be your focus, not efficiency.

-Kevin




Web开发人员 <无**** @ hotmail.com>在消息中写道

新闻:3f ******** @ news.iprimus.com.au ...

"Web Developer" <no****@hotmail.com> wrote in message
news:3f********@news.iprimus.com.au...

问题:为什么在C ++中不妥协的效率和可移植性之间存在固有的冲突?

问候
WD
Hi,

Question: Why is there an inherent conflict between uncompromising
efficiency and portability in C++?
Regards
WD




无论何时你采取不妥协的立场,你都要求发生冲突,

'生活不是吗?


所有语言之间都存在冲突效率和可移植性,因为
程序必须在不同的环境中运行。它们可以在一个特定的环境中高效地使用,但这样做只会降低效率,或者在不同的环境中无法运行。


john



Whenever you take an uncompromising position you are asking for conflict,
that''s life isn''t it?

All languages have a conflict between efficiency and portablility, because
programs must run in different environments. They can be made efficient for
one particular environment but only at the cost of being less efficient or
unportable on a different environment.

john


On Thu,2003年7月31日16:23:49 +0930,Web Developer

< no * ***@hotmail.com>写道:
On Thu, 31 Jul 2003 16:23:49 +0930, "Web Developer"
<no****@hotmail.com> wrote:


问题:为什么在C ++中不妥协的效率和可移植性之间存在固有的冲突?
Hi,

Question: Why is there an inherent conflict between uncompromising
efficiency and portability in C++?




没有。编写既可移植的代码也很容易用C ++编写高效的代码。


Tom



There isn''t. It is easy to write code that is both portable and
efficient in C++.

Tom


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

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