function pointer error
- by Codeguru
Can anybody help me with this simple code??
include
using namespace std;
void testFunction(){
cout<<"This is the test function 0"<
void testFunction1(){
cout<<"This is the test function 1"<
void testFunction2(){
cout<<"This is the test function 2"<
int main(){
//fp=testFunction;
(*fp[testFunction1])();
//cout<<"Addrees of the function pointer is:"<<*fp;
}
Iam getting the following error:
error: invalid types `void (*[3])()[void ()()]' for array subscript|