C ++代码文件扩展名? .cc vs .cpp [英] C++ code file extension? .cc vs .cpp
本文介绍了C ++代码文件扩展名? .cc vs .cpp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到C ++代码保存为 .cc
和 .cpp
文件。两者之间是否有区别?
I have seen C++ code saved as both .cc
and .cpp
files. Is there a difference between the two?
Google样式指南似乎建议 .cc
,但不提供解释。
The Google style guide seems to suggest .cc
, but provides no explanation.
我主要关注在Linux系统上的程序。
I am mainly concerned with programs on Linux systems.
推荐答案
在一天结束没有关系,因为C ++编译器可以处理文件在任一格式。如果这是你的团队中的一个真正的问题,翻转一个硬币,并继续实际工作。
At the end of the day it doesn't matter because C++ compilers can deal with the files in either format. If it's a real issue within your team, flip a coin and move on to the actual work.
这篇关于C ++代码文件扩展名? .cc vs .cpp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文