Thread View: pl.comp.objects
1 messages
1 total messages
Started by quas... Robert Perlinski
Wed, 15 Nov 1995 00:00
Re: Ja w sprawie przekazywania adresow
Author: quas... Robert Perlinski
Date: Wed, 15 Nov 1995 00:00
Date: Wed, 15 Nov 1995 00:00
27 lines
852 bytes
852 bytes
Odpowiadajac Markowi Sobolowi i Rafalowi Posmykowki. Co
rozumiem przez wskazniki do metod? Wyjasnia to ponizszy
fragment kodu:
class Klasa
{
public:
int metoda(double);
}
int (Klasa::*wsk_na_metode_klasy)(double) = &Klasa::metoda;
int main(void)
{
Klasa obiekt;
(obiekt.*wsk_na_metode_klasy) (11.25) // przyklad wywolania
return 0
}
Mysle, ze programik nie wymaga komentarza.
Robert
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads