main class connected to two classes which have the same super class in C++
It's really an organizational policy rather than a platform policy (that is dictated by the company/school/personal coding standards). Though it gets worse. On some platforms with case sensitive file names, .c can be a C file and .C can mean a C++ file.
ah ok but am using linux. So whats the standard? I hate ms windows. I wouldn't develop on it unless I have to eg When am using VB.Net though I tend not to use VB. U see am using anjuta so I just went with what it's programmed to do.
Quote:Original post by amateur programmer
ah ok but am using linux. So whats the standard? ... U see am using anjuta so I just went with what it's programmed to do.
The problem is probably not related to your choice of extensions. It is probably related to how you are organizing your code. SiCrane provided a very helpful link above. You should read it if you haven't already. Here it is again: Organizing Code Files in C and C++
BTW, I've seen these extensions used:
- source -- cpp, cc, cxx, C
- headers -- h, hpp, H
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement