In the code (.h file)below, I am creating a class clsA with a constructor.
Then, I am declaring another class clsB, which always will have 2 instances of clsA.
I am getting the C2061 error
c:\vcppnet\new\new\stdafx.h(19) : error C2061: syntax error : identifier 'TYPE1'
c:\vcppnet\new\new\stdafx.h(20) : error C2061: syntax error : identifier 'TYPE1'
Can I get some help in resolving this please?
Code:typedef enum {TYPE1, TYPE2} enumType; class clsA{ public: int a; clsA(enumType n_type){a=n_type;}; }; class clsB{ public: clsA A1(TYPE1); clsA A2(TYPE2); };



LinkBack URL
About LinkBacks


