65,186
社区成员




#ifndef TEMPLATECLASS_H
#define TEMPLATECLASS_H
template<typename T>
class A
{
public:
void test(const T&);
};
#include "templateClass.cpp"
#endif
#include "templateFunction.h"
template<typename T> int compare(const T& v1,const T& v2)
{
if(v1<v2) return -1;
if(v2<v1) return 1;
return 0;
}
#ifndef TEMPLATEFUNCTION_CPP
#define TEMPLATEFUNCTION_CPP
#include "templateFunction.h"
template<typename T> int compare(const T& v1,const T& v2)
{
if(v1<v2) return -1;
if(v2<v1) return 1;
return 0;
}
#endif
#ifndef TEMPLATECLASS_H
#define TEMPLATECLASS_H
template<typename T>
class A
{
public:
void test(const T&);
};
#include "templateClass.cpp"
#endif
#ifndef TEMPLATECLASS_H
#define TEMPLATECLASS_H
template<typename T>
class A
{
public:
void test(const T&);
};
#include "templateFunction.h"
template<typename T> int compare(const T& v1,const T& v2)
{
if(v1<v2) return -1;
if(v2<v1) return 1;
return 0;
}
#endif
#ifndef TEMPLATECLASS_H
#define TEMPLATECLASS_H
template<typename T>
class A
{
public:
void test(const T&);
};
#ifndef TEMPLATECLASS_H
#define TEMPLATECLASS_H
template<typename T>
class A
{
public:
void test(const T&);
};
#include "templateClass.cpp"
#endif
template<typename T> int compare(const T& v1,const T& v2)
{
if(v1<v2) return -1;
if(v2<v1) return 1;
return 0;
}
#endif