I need help cause i dont know how to use an array of pointer to classes.
I've got in my main this:

gramma** letter;

I have in an other class named classA this:

gramma** grammata;

I construct in my main like this:

letter=new gramma*[number];
	for(int i=0;i<number;i++){
		letter[i]=new gramma(arithmos,&array);}

What i need to do is to pass the array of pointers that is in main in the array of pointers that is in the classA.I am doing this but it must be wrong...

for(int i=0;i<number;i++){
		classA.grammata[classA.get_counter()]=letter[i];

The way you have written your question, it is quite difficult to understand what you have and what you want to do. Can you re-phrase your question clearly?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.