Grazie mille per l'esempio![]()
Codice PHP:Poker poker;
int i;
void (Poker::*fp[3])(); //Array di puntatore a funzione
fp[0] = &Poker::setCarica(); //Setta il puntatore a funzione
fp[1] = &Poker::setComandi(); //Setta il puntatore a funzione
/*
In function `int main()':
cannot call member function `void Poker::setCarica()' without object
cannot call member function `void Poker::setComandi()' without object */
![]()
prova a togliere le parentesi tonde:
fp[0] = &Poker::setCarica;
perchè le parentesi indicano una chiamata.
![]()
Sun Certified Java Programmer
EUCIP Core Level Certified
European Certification of Informatics Professionals