Hey so I'm experimenting with pointers to function and using them to call a desired function based on the number given.
I have tried several things but none of them seem to work.

What I want to do is have an array of pointers of functions defined in a base class (thats a mouth-full) and then call them in the top-level class based on the number I give. So I've made up some general piece of code that demonstrate what I've tried.
hopefully you could help me with figuring this out.

Thanks in advance.

So here was just kind of my first attempt and then I looked online and tried starting from scratch and I just kept getting more confused.
Hopefull this demonstrates what I want to do.
Code:
/*
	Testing an array of functions

	NOTES
	+

*/
#include <iostream>
using namespace std;
class testa{ //this class contains the member function that I want to run
public:
	testa();
	int a(int x);
	int b(int x);
	int c(int x);
	int d(int x);
private:
	int num;
};
testa::testa(){
	num=0;
}
int testa::a(int x){
	cout<<"a";
	return x+1;
}
int testa::b(int x){
	cout<<"b";
	return x+1;
}
int testa::c(int x){
	cout<<"c";
	return x+1;
}
int testa::d(int x){
	cout<<"d";
	return x+1;
}

class testb: public testa{ //At first I tried declaring an instance of class testa but I ran into even more problems so I just made it public
public:
	testb();
	void run_funcs(int x);
private:
	int (*F[4])(int x); //heres the array that I want to fill with functions
};
testb::testb(){
	int (*F[4])(int x)={a, b, c, d}; //(this doesnt work either)  int (testa::*F[4])(int x)={a, b, c, d};
}
void run_funcs(int x){ //so this should print "abcd" to the screen
	for(int i=0; i<4; i++){
		//I feel like I should tell it what the included functions are from maybe?
		//I tried declaring a testa a called g and then did:
		//(g.*F[i])(x);
		//and that didnt work either
		(*F[i])(x);  
	}
}

int main(){
	int x=0;

	run_funcs(x); 

	//to pause the concole window(im working in an IDE)
	char p;
	cin>>p;
return 0;
}
The errors I get from microsoft visual c++ express are:
Code:
1>------ Build started: Project: Pointer to function test, Configuration: Debug Win32 ------
1>  test.cpp
1>d:\my documents\visual studio 2010\projects\pointer to function test\pointer to function test\test.cpp(48): error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'int (__cdecl *)(int)'
1>          None of the functions with this name in scope match the target type
1>d:\my documents\visual studio 2010\projects\pointer to function test\pointer to function test\test.cpp(48): error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'int (__cdecl *)(int)'
1>          None of the functions with this name in scope match the target type
1>d:\my documents\visual studio 2010\projects\pointer to function test\pointer to function test\test.cpp(48): error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'int (__cdecl *)(int)'
1>          None of the functions with this name in scope match the target type
1>d:\my documents\visual studio 2010\projects\pointer to function test\pointer to function test\test.cpp(48): error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'int (__cdecl *)(int)'
1>          None of the functions with this name in scope match the target type
1>d:\my documents\visual studio 2010\projects\pointer to function test\pointer to function test\test.cpp(56): error C2065: 'F' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Thanks again