Witam
Ja chce zrobić wskaźnik na funkcje ale funkcje mogą mieć rożne argumenty i typ zwracania
NP:
void hello(string text){
cout << "Hello " << text << endl;
}
int test(int a, char b){
//ciało funkcji
}
//wskaźnik
void(*wskaznik)();
wskaznik = &test;
wskaznik(10, 'c');
void(*wskaznik2)();
wskaznik2 = &hello;
wskaznik2("World");