Doubt with C++ file name prefixes

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2009
Posts: 2
Reputation: serkOner is an unknown quantity at this point 
Solved Threads: 0
serkOner serkOner is offline Offline
Newbie Poster

Doubt with C++ file name prefixes

 
0
  #1
Aug 19th, 2009
I'm currently writing a small game engine and I've downloaded the Irrlicht source code to take some tricks in the design but I have a question... why use some prefixes in the file names and what they stands for? example:

CGUIEditBox.cpp
CGUIFont.h
CXMLWriter.h
IDepthBuffer.h

I also saw this practice in several books related to this matter, but no one explains why they do that.

I already know that the "I" prefix mean "Interface" but I don't have idea of what the "C" means.

Is that a common practice in software development?
How can I use it correctly?

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,518
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1480
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: Doubt with C++ file name prefixes

 
-7
  #2
Aug 19th, 2009
The 'C' just means C-language.

>>Is that a common practice in software development?
No. Microsoft coders like to use such prefixes in their classes/structures, but not in filenames.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,362
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 173
firstPerson's Avatar
firstPerson firstPerson is offline Offline
Nearly a Posting Virtuoso

Re: Doubt with C++ file name prefixes

 
0
  #3
Aug 20th, 2009
Just a wild guess.

CGUIEditBox
C - c language?
GUI - graphical user interface
EditBox - edit box

CGUIFont
C - c language ?
GUI - graphical user interface
Font - font

CXMLWriter
C - c language ?
XML - Extensible Markup Language
Writer - writer
Last edited by firstPerson; Aug 20th, 2009 at 1:35 am.
1) What word becomes shorter if you add a letter to it? 
      [ Solved by : niek_e, Paul Thompson, SgtMe, murtan, xavier666, jonsca]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...
      [*solved by : murtan, xavier666]
3) What is the 123456789th prime numer?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 2
Reputation: serkOner is an unknown quantity at this point 
Solved Threads: 0
serkOner serkOner is offline Offline
Newbie Poster

Re: Doubt with C++ file name prefixes

 
0
  #4
Aug 20th, 2009
well, the question is solved. Thanks!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC