Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 23rd, 2005, 04:57 AM
QQ
Guest
 
Posts: n/a
Default what kind of c file is it

if the file name is *.cc

Thanks a lot!

  #2  
Old July 23rd, 2005, 04:57 AM
Victor Bazarov
Guest
 
Posts: n/a
Default 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
Default 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
Default 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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles