Change the declaration that you aren't showing here to match the definition.
i declared it as
list<string> *table[SIZE];
and wanted to pass by ref
void input(list<string>& *x[])
is this correct now .. ?
Somewhere above main you had:
void input(list<string> x);
Change that to match the definition of the function.
Last edited on
What you say you want: void input(list<string>* (&x)[11])
What you actually need: void input(list<string>* x[])
thanks for helping bro ... problem solved by using the
list<string> **object;