plz help me with this error
Hi all!
can somebody please tell me what is wrong with the following code?
the header file:
Code:
#include <set>
template <typename T>
class professional_set
{
public:
set<typename T> root;
set<typename T>:: iterator it;
}
in .cpp file I have built an object like this:
professional_set <int> a;
when I compile it, it gives this error for the last line:
missing ';' before identifier 'it'
missing type specifier - int assumed. Note: C++ does not support default-int
what do I do now?