Guarda la dichiarazione l'ho fatta ma continuo ad avere problemi, ad esempio se uso l'operatore inCoda()
l'errore : `inCoda' has not been declaredcodice:int i=3; CodaVT<int> *M[i]; for(int j=1;j<=3;j++) M[j]= new CodaVT<int>(10); M[1].inCoda(1);
request for member of non-aggregate type before '(' token
non sto capendo dove sbaglio
codice:#include <iostream> #include "CodaVT.h" using namespace std; int main(int argc, char *argv[]) { int i=3; CodaVT<int> *M[i]; for(int j=1;j<=3;j++) M[j]= new CodaVT<int>(10); M[1].inCoda(1); system("PAUSE"); return EXIT_SUCCESS; }