Thanks for the replies.

I am still having trouble though:

I have the following class:
Code:
#ifndef __CCONFIG_H__
#define __CCONFIG_H__

#include "CFile.h"
#include <vector>


class CConfig
{
public:
	int Parse(const std::string &path);
	struct CONFIG {std::string Label; std::string Value;};

private:
	std::vector<CONFIG> config();
};


#endif //__CCONFIG_H__
I need to know how I can access this from the class implmenatation to add elements to the vector.

Something like this? this->config[1].Label = "Label1";

many thanks...