Possible Duplicate:
Correct C++ code file extension? .cc vs .cpp
.c vs .cc vs. .cpp vs .hpp vs .h vs .cxx
I have written C++ code in files with extension .cpp
, .cc
or .cxx
Can anyone explain that what is the difference between these three and which one is the best ( is that platform dependent ) and why?
I am currently working on cygwin.
It's a matter of code conventions. These extensions are all interchangeable (as far as platforms are concerned). If you participate in an existing project, you should adhere to this project's conventions, otherwise just choose whatever you like.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With