As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center提供指导。




9年前关闭。




我的问题是,为什么人们在拥有C++时仍会使用C?
我之所以学习C是因为它被认为是程序员交流的语言,因此建议任何程序员都知道。然后我进入了C++,现在我想,为什么人们仍然使用C并进行编程?
据我所知,C++功能更强大(其中包含OOP方面),它与C一样快,并且总体看来似乎更好。我见过人们不喜欢C++,因为它很难编码。

最佳答案

C更简单,编写起来也更有趣。

但是,更重要的是,编译器的编写要容易得多,因此仍然有许多环境,您只能得到C编译器,或者C++编译器的劣等(笨拙,较慢,生成肿的二进制文件)。

08-19 18:41