什么时候应该使用C? [英] When should use C?

查看:112
本文介绍了什么时候应该使用C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定一个支持C和C ++编译器的平台,还有什么其他因素可以决定使用哪种编程语言,C或C ++,除了

程序员的流畅性级别?


在软件开发的哪些方面你使用的是C而不是C ++?什么

在这些区域使用C的好处?


提前致谢!

Given a platform that supports both C and C++ compiler, what other factors
should determine which programming language to use, C or C++, besides
programmers'' fluency level?

In what areas of software developments are you using C instead of C++? What
benefits of using C in these areas?

Thanks in advance!

推荐答案



" eas" < LP **** @ countrywide.att.net>在留言中写道

新闻:6%******************** @ bgtnsc04-news.ops.worldnet.att.net ...

"eas" <lp****@countrywide.att.net> wrote in message
news:6%********************@bgtnsc04-news.ops.worldnet.att.net...
给定一个支持C和C ++编译器的平台,除了程序员的流畅程度之外,还有哪些其他因素决定使用哪种编程语言,C或C ++?

在使用C而不是C ++的软件开发的哪些方面?
在这些方面使用C有什么好处?
Given a platform that supports both C and C++ compiler, what other factors
should determine which programming language to use, C or C++, besides
programmers'' fluency level?

In what areas of software developments are you using C instead of C++? What benefits of using C in these areas?




C简单。像ugga简单的Thor!


实际上,除了更简单的
编译器之外,C并没有优于C ++的优势。


Tom



C simple. Thor like ugga simple!

Realistically C doesn''t have an advantage over C++ other than a simpler
compiler.

Tom




" eas" < LP **** @ countrywide.att.net>在留言中写道

新闻:6%******************** @ bgtnsc04-news.ops.worldnet.att.net ...

"eas" <lp****@countrywide.att.net> wrote in message
news:6%********************@bgtnsc04-news.ops.worldnet.att.net...
给定一个支持C和C ++编译器的平台,除了程序员的流畅程度之外,还有哪些其他因素决定使用哪种编程语言,C或C ++?

在使用C而不是C ++的软件开发的哪些方面?
在这些方面使用C有什么好处?
Given a platform that supports both C and C++ compiler, what other factors
should determine which programming language to use, C or C++, besides
programmers'' fluency level?

In what areas of software developments are you using C instead of C++? What benefits of using C in these areas?



C在写一个有意图的库时可能会给你带来更好的便携性

是可以从不同语言调用,因为大多数语言都允许导入C库或调用C函数。


ps你应该google forc over c ++或者类似的搜索字符串,我很确定

人们之前曾多次在usenet上讨论过这个话题;-)


尊重,

Toni Uusitalo



C might give you better portability when writing a library that''s intended
to be callable from different languages since most of languages allow
importing of C libraries or calling of C functions.

p.s. you should google for "c over c++" or similar search string, I''m sure
people have discussed this topic many times on the usenet before ;-)

with respect,

Toni Uusitalo



2004年1月17日星期六19:25:54 GMT,eas ; < lp **** @ countrywide.att.net>

在comp.lang.c中写道:
On Sat, 17 Jan 2004 19:25:54 GMT, "eas" <lp****@countrywide.att.net>
wrote in comp.lang.c:
给定一个支持C和C的平台C ++编译器,还有什么其他因素可以决定使用哪种编程语言,C或C ++,还有程序员的流畅程度?


让我们提出一个类似的问题:


给定一个包含锤子和螺丝刀的工具箱,什么

其他因素应该决定使用哪种工具,锤子或者b / b螺丝刀,除了工人的熟悉程度?


专业人士,以及确实任何人都会有常识,会用他们的b / b $ b判断选择他/她可以做的最好的工具

手头。

无论在一个人的职业生涯中插入多少钉子,一个人应该能够识别何时使用螺丝刀

而不是锤子。

在软件开发的哪些方面你使用的是C而不是C ++?在这些方面使用C有什么好处?

提前致谢!
Given a platform that supports both C and C++ compiler, what other factors
should determine which programming language to use, C or C++, besides
programmers'' fluency level?
Let''s pose an analogous question:

Given a tool box that contains both a hammer and a screwdriver, what
other factors should determine which tool to use, hammer or
screwdriver, besides worker''s familiarity level?

A professional, and indeed anyone will common sense, will user their
judgement to select the best tool available to him/her to do the job
at hand.

No matter how many more nails than screws one has inserted in one''s
career, one should be able to recognize when to use the screwdriver
rather than the hammer.
In what areas of software developments are you using C instead of C++? What
benefits of using C in these areas?

Thanks in advance!




注意你的问题不是这样的这里真的很热门。

C ++语言的存在与comp.lang.c中的无关紧要,无关紧要,并且无关紧要。


如果你想要对语言之间的比较提出意见,你想要

(边缘)alt.comp.lang.learn.c-c ++或(更好的主意)a

语言中立组喜欢comp.programming。


-

Jack Klein

主页: http://JK-Technology.Com



comp的常见问题解答。 lang.c http://www.eskimo.com/ ~scs / C-faq / top.html

comp.lang.c ++ http://www.parashift.com/c++-faq-lite/

alt.comp.lang.learn.c-c ++
http:// www。 contrib.andrew.cmu.edu/~a...FAQ-acllc.ht ml



Note by the way that your question is not really topical here. The
very existence of the C++ language is irrelevant, immaterial, and
off-topic in comp.lang.c.

If you want opinions on comparisons between languages, you want
(marginally) alt.comp.lang.learn.c-c++ or (much better idea) a
language neutral group like comp.programming.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html


这篇关于什么时候应该使用C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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