المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : linking two file in gcc



C++ Programming
01-11-2010, 06:11 AM
hello i tried to link this two file:

#include
template class hash{
public:
list *l;
int m,n;//k is the entry and m is number of slots and n is the size of our array
hash(){
l=new list[n];
n=m=0;
}
hash(int n1,int m1){
n=n1;
m=m1;
l=new list[n];
}
int hashfunct(T k){
return k % m;
}
void print_hash (){
for(int i=0;i