I've figured out some of the errors, but since I'm not a programmer I have no idea how to fix the code for four of them. I could really use an example on just one of them and I think I could follow that to fix the others.
This is the function:
- Code: Select all
SNode * SZone::AddNode( SNode * Node )
{
return vNodes.push_back( Node );
}
- Code: Select all
error C2440: 'return' : cannot convert from 'void' to 'SNode *'
- Code: Select all
struct SZone
{
char szName[256];
std::vector<SPath*> vPaths;
[b]std::vector<SNode*> vNodes;[/b]
SZone();
~SZone();
SZone( const char * szName );
SNode * GetNodeByName( const char * szName );
SNode * AddNode( SNode * Node );
SPath * GetPathByName( const char * szName );
SPath * AddPath( SPath * Path );
};