为什么我们为C使用不同的文件? [英] Why do we use different files for C ?

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

问题描述




你能否列出我们为什么不同的C文件写的原因

代码。


我们使用头文件逻辑分组相关的功能。

还有其他原因我们需要使用


不同的C文件吗? />

亲切的建议,


问候,


Ashish

Hi ,

could you please list the reasons why we different C files for writing
code .

We use header files to logically group functionality that is related .
Is there any other reason why we need to use

different C files ?

Kindly advice,

Regards ,

Ashish

推荐答案

Roy写道:
Roy wrote:




你能来吗请列出我们为什么不同的C文件写入

代码的原因。

我们使用头文件逻辑分组相关的功能。

还有其他原因我们需要使用


不同的C文件吗?


请咨询,
Hi ,

could you please list the reasons why we different C files for writing
code .

We use header files to logically group functionality that is related .
Is there any other reason why we need to use

different C files ?

Kindly advice,



是的。为了可读性,可维护性和可重用性。另外对于

封装,虽然在C中,它有点受限。

Yes. For readability, maintainability and reuseability. Also for
encapsulation, though in C, it''s somewhat limited.


santosh写道:
santosh wrote:

Roy写道:
Roy wrote:

>你能不能列出我们为什么不同的C文件写代码的原因。
我们使用头文件对逻辑相关的功能进行逻辑分组。
还有其他原因我们需要使用

不同的C文件吗?
请咨询,
>could you please list the reasons why we different C files for writing
code .

We use header files to logically group functionality that is related .
Is there any other reason why we need to use

different C files ?

Kindly advice,



是的。为了可读性,可维护性和可重用性。同样对于

封装,虽然在C中,它有点受限。


Yes. For readability, maintainability and reuseability. Also for
encapsulation, though in C, it''s somewhat limited.



对于多对开发 - 不同的对可以在不同的文件(组)上工作

,并且签入次数少很可能

claintershfere。


-

穿插刺猬

不是这样: http://www.electrichedgehog.net/

And for multi-pair development -- different pairs can be working
on different file(group)s, and the checkins are less likely to
claintershfere.

--
Interspersed Hedgehog
Notmuchhere: http://www.electrichedgehog.net/


Roy< ro ******* @ gmail.comwrites:
Roy <ro*******@gmail.comwrites:

你能列出我们为什么不同的C文件的原因写作

代码。


我们使用头文件逻辑分组相关的功能。

还有其他原因我们为什么需要使用


不同的C文件?
could you please list the reasons why we different C files for writing
code .

We use header files to logically group functionality that is related .
Is there any other reason why we need to use

different C files ?



这不是一个功课问题,不是吗?


-

Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

That wouldn''t be a homework question, would it?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


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

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