EdwinUgarte
Programmer
Hello people...
I need to create a list and other classes parametrizadas in Visual Studio .Net.
For I am using the template...
For the case of the list in lista.h in which I declare and I define the class with their functions... Until there all well
But when I try to separate the declaration of the class:
the declaration (in " lista.h "
:
#IFNDEF LISTA_DESAFIO
#DEFINE LISTA_DESAFIO
template<class elem>
clever class {..
..
};
#endif
The definition (in " lista.cpp "
:
template <class elem>
it lists <elem>::lista () / /Constructor
{
sig=NULL;
}
template<class elem>
it lists <elem>::~lista () / /Destructor
{
}
and other functions more....
.....
....
a third file from where I call it (programa.cpp):
#include " lista.h "
...
void main ()
{
it lists <int> miLista;
}
Then treatment of compiling the program, and the visual one gives me an error
fatal error C1010: unexpected end of file while looking for precompiled header directive
Does somebody know as correcting this problem?
I need to create a list and other classes parametrizadas in Visual Studio .Net.
For I am using the template...
For the case of the list in lista.h in which I declare and I define the class with their functions... Until there all well
But when I try to separate the declaration of the class:
the declaration (in " lista.h "
#IFNDEF LISTA_DESAFIO
#DEFINE LISTA_DESAFIO
template<class elem>
clever class {..
..
};
#endif
The definition (in " lista.cpp "
template <class elem>
it lists <elem>::lista () / /Constructor
{
sig=NULL;
}
template<class elem>
it lists <elem>::~lista () / /Destructor
{
}
and other functions more....
.....
....
a third file from where I call it (programa.cpp):
#include " lista.h "
...
void main ()
{
it lists <int> miLista;
}
Then treatment of compiling the program, and the visual one gives me an error
fatal error C1010: unexpected end of file while looking for precompiled header directive
Does somebody know as correcting this problem?