junaid_raja30
asked on
Function Template Problem
Ok guys i am having a function template problem here:
Basically and finally (after a huge WORKOUT!!!) i have 5 files all working...
OrderedList.h & .cc
Member.h & .cc
Node.h & .cc
ClubTable.h & .cc - Basically the HashTable
and finally the main.cc
Now the problem is that where do i actually put the function templates - in the .cc of the upper files or the main.cc??
Thats the first question the rest will follow on.
Basically and finally (after a huge WORKOUT!!!) i have 5 files all working...
OrderedList.h & .cc
Member.h & .cc
Node.h & .cc
ClubTable.h & .cc - Basically the HashTable
and finally the main.cc
Now the problem is that where do i actually put the function templates - in the .cc of the upper files or the main.cc??
Thats the first question the rest will follow on.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>there is no separate header file?
Then create one or put them in a .h file that is included in all .cc files anyway.
Then create one or put them in a .h file that is included in all .cc files anyway.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
how could your program be adapted to using templates which deals with any data type?