what is a tpp file?

Dec 1, 2008 at 4:16pm
I am working on a c++ project for school, and the teacher mandates that we use a .tpp file for our next program. I dont really understand the inportance of a .tpp file. Is a .tpp file really necessary? Couldnt it be .cpp file instead or does it have to be a .tpp file?

Bit new to the whole programming scene, so im not up to par on the jargon yet.

Thanks in advance
Dec 1, 2008 at 4:32pm
I've always used .cpp files, but a quick google search shows that something like a .tpp does exist, although it appears that its no different from a .cpp file.
Last edited on Dec 1, 2008 at 4:37pm
Dec 1, 2008 at 6:08pm
It's typically used to denote that the source file contains implementations of templated methods (as opposed to putting the implementation in the header file).

Dec 1, 2008 at 7:59pm
Complain to the school curriculum department that your teacher is using compiler-specific nonsense. Just because a thing exists doesn't make it worth learning --unless you are writing a compiler or extensions to some specific compiler.

Unless your class is about the internal workings of the GCC or ancient BCC stuff, it is inappropriate to spend your time learning about such trivia.

Remember, you are the employer -- and the university is the employee. Make it clear that you are paying for useful knowledge. Using .tcc files has nothing to do with learning to program in C++.

[edit] You might want to adjure your professor before you bother the department head. Chances are he is just following some book or website that dinks with that stuff. [/edit]
Last edited on Dec 1, 2008 at 8:00pm
Topic archived. No new replies allowed.