Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''? 
July 22nd, 2005, 04:45 PM
| | | Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?
I like the old faver of ``.cc''
Another reason is try http://main.cc
______________________________
// Jianyuan Wu
// Website: main.cc
int main() { return 0; } | 
July 22nd, 2005, 04:45 PM
| | | Re: Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?
In message <4cecac6f.0407220418.4de3b2a3@posting.google.com >, maincc
<tmp1@main.cc> writes[color=blue]
>I like the old faver of ``.cc''
>[/color]
I prefer the one my IDE generates for me, whatever that happens to be.
--
Richard Herring | 
July 22nd, 2005, 04:45 PM
| | | Re: Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?
On 22 Jul 2004 05:18:04 -0700, tmp1@main.cc (maincc) wrote:
[color=blue]
>I like the old faver of ``.cc''
>Another reason is try http://main.cc[/color]
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 | 
July 22nd, 2005, 04:45 PM
| | | Re: Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?
maincc posted:
[color=blue]
> I like the old faver of ``.cc''
> Another reason is try http://main.cc
>
>
> ______________________________
> // Jianyuan Wu
> // Website: main.cc
> int main() { return 0; }[/color]
..cpp and .hpp all the way!
-JKop | 
July 22nd, 2005, 04:45 PM
| | | Re: Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?
JKop <NULL@null.null> spoke thus:
[color=blue]
> .cpp and .hpp all the way![/color]
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.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome. | 
July 22nd, 2005, 04:45 PM
| | | Re: Which do you prefer, ``.cc'', ``.cpp'', or ``.cxx''?
In message <cdoips$h36$2@chessie.cirr.com>, Christopher Benson-Manica
<ataru@nospam.cyberspace.org> writes[color=blue]
>JKop <NULL@null.null> spoke thus:
>[color=green]
>> .cpp and .hpp all the way![/color]
>
>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.
>[/color]
[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.
--
Richard Herring | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 220,840 network members.
|