Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?

M

maincc

I like the old faver of ``.cc''
Another reason is try http://main.cc


______________________________
// Jianyuan Wu
// Website: main.cc
int main() { return 0; }
 
T

tom_usenet

I like the old faver of ``.cc''
Another reason is try http://main.cc

You forgot .C (which relies on a case sensitive filesystem) and .c++.
I use whatever my development environment is happiest with (which
happens to be .cpp at the moment).

I suspect the most common is probably .cpp, but I might well be wrong.

Tom
 
C

Christopher Benson-Manica

JKop said:
.cpp and .hpp all the way!

I thought .hpp was a reasonable extension, but I was criticized for
using it here because it's apparently used by Borland SuckBuilder for
a precompiled Pascal file or something equally ridiculous.
 
R

Richard Herring

Christopher Benson-Manica said:
I thought .hpp was a reasonable extension, but I was criticized for
using it here because it's apparently used by Borland SuckBuilder for
a precompiled Pascal file or something equally ridiculous.
[OT, but let's risk it...]
Well, that criticism is certainly ridiculous - the Borland-supplied .hpp
files contain something that's close enough (modulo a few extensions) to
normal C++ for their C++ compiler to swallow. It may have been
translated from Pascal, but that's a different issue.

However, the Borland IDE insists on creating paired .cpp and .h pairs
and will become very confused if you rename the .h as .hpp.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top