Connecting Tech Pros Worldwide Help | Site Map

what kind of c file is it

  #1  
Old July 23rd, 2005, 04:57 AM
QQ
Guest
 
Posts: n/a
if the file name is *.cc

Thanks a lot!

  #2  
Old July 23rd, 2005, 04:57 AM
Victor Bazarov
Guest
 
Posts: n/a

re: what kind of c file is it


QQ wrote:[color=blue]
> if the file name is *.cc[/color]

It's usually not a C file at all. Most likely it's a C++ translation
unit. Can you open it and look at it? What does it look like?

V
  #3  
Old July 23rd, 2005, 04:57 AM
Rolf Magnus
Guest
 
Posts: n/a

re: what kind of c file is it


QQ wrote:
[color=blue]
> if the file name is *.cc[/color]

The contents of a file don't depend on its name, and the C++ standard
doesn't require special naming for source files. But there are conventions
to mark the content by name. *.cc is a very common file name pattern for
C++ sources. I'm not sure why you're asking. Since you posted the question
in comp.lang.c++, it seems to me that you are actually aware that it's C++.

  #4  
Old July 23rd, 2005, 04:57 AM
Stewart Gordon
Guest
 
Posts: n/a

re: what kind of c file is it


QQ wrote:[color=blue]
> if the file name is *.cc
>
> Thanks a lot![/color]

One of various adopted extensions for C++. There are others:
..cpp (probably the most common, but annoyingly one that my version of
tcsh doesn't recognise)
..c (leading to confusion with C)
..C (on case-sensitive file systems)
..c++ (on filesystems that support such names)
..cxx (presumably a kludge for .c++)

I wonder which Bjarne himself uses....

Stewart.

--
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Re: maximum value in a column of file maurizio answers 1 July 23rd, 2008 01:45 PM
Re: maximum value in a column of file Fredrik Lundh answers 0 July 23rd, 2008 10:55 AM
How to read such kind of file format ? yezi answers 5 November 15th, 2005 04:57 AM
How to read this kind of file? PengYu.UT@gmail.com answers 6 July 23rd, 2005 06:03 AM