I have the following structure:
CObject
{
protected:
char *mName;
public:
CObject(char *n)
{
mName=strdup(n);
}
};
CVector:public CObject
{
char *mValues[50];
int mElements;
public:
CVector(char *n):CObject(n) {}
};
CMatrix:public CObject
{
char *mValues[50][50];
int mLines;
int mColumns;
public:
CMatrix(char *n):CObject(n) {}
};
My main function:
int main()
{
pV=new CVector("Vector 1");
pM=new CMatrice("Matrice 1");
delete pV;
delete pM;
}
As you can see, i want to explicitly call them.