void randomMethod()
{
solution->Passenger p list.AddToList(p.methodname,3);}
That's not valid code. A fully-qualified type name cannot contain the -> operator. Perhaps you mean to have :: instead. You're also missing the semi-colon.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"