Vectors

Muhammad Rizwan rizwan at advcomm.net
Wed Mar 16 07:13:51 GMT 2005


Thanks for your reply. 
I got the solution, it works in this way:
vector<CHCTrackManager::SMethod> SubMethodInfo;
instead of this:
vector<SMethod> SubMethodInfo;

Any how thanks for your reply.

Regards,

On Tue, 2005-03-15 at 22:33, Andrew Sutton wrote:
> Muhammad Rizwan wrote:
> 
> >Hello
> >
> >First this is not kdevelop issue in any way but its related to C++ and
> >its for the gurus of C++, so please don't mind of this question.
> >
> >I am making data structures in c++ by using combination of vectors and
> >structs. I have defined this in TrackManager.h:
> >
> >   typedef struct SM
> >   {
> >	string SubMethodName;
> >	vector<string> SubMethodNameArg;
> >   }SMethod;
> >
> >   vector<SMethod> SubMethodInfo;
> >  
> >
> 
> i couldn't say exactly why the compiler is complaining - maybe you're 
> missing the include file or something, but the better question is why 
> you're declaring you structure this way. this is C++, you don't need to 
> typedef like that. it should be written:
> 
> struct SMethod
> {
>     string SubMethodName;
>     vector<string> SubmethodNameArg;
> };
> 
> vector<SMethod> SubmethodInfo;
> 
> that alone might account for the compile error.
> 
> andrew sutton
> asutton at cs.kent.edu
> 
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list