I am sorry. My bad, now it is working.
Yes, I got the error when I do
struct MembData{
int ID;
string Name;
};
And as now I know that I do not need to new a class to use its
functions/properties, I have another question, why should I bother to
define a pointer and the new the class and have to remember to delete
the pointer when I am done with this class. Why should not we just use
CMyClass myClass and then myClass.Func1() everywhere?
thanks
-rockdale,
On Jan 27, 12:51 pm, "Igor Tandetnik" <itandet...@mvps.org> wrote:
"rockdale" <rockdale.gr...@gmail.com> wrote in message
news:595f7b3a-d594-418b-915d-bc3312e707ff@s19g2000prg.googlegroups.com
Oh, one more:
What do you think you need a typedef for? Why not just
struct MembData { ... };
if I take out typedef I got error "undeclared identifier" on
typedef std::vector<MembData> MembVec;
With the declaration the way I've shown?
struct MembData {
...
};
Note where 'MembData' goes.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925- Hide quoted text -
- Show quoted text -