#include <map>
#include <string>
#include <iostream>
using namespace std;
typedef void (*FP)(char *s);
void f1(char *S)
{
cout<<S<<endl;
}
void f2(char *S)
{
cout<<S<<endl;
}
void Inovke(char *s)
{
cout<<s<<endl;
}
void PrintTest(char *s)
{
cout<<"PrintTest"<<endl;
cout<<s<<endl;
}
void CallBack(void (*callback)(char *s),char *s)
{
callback(s);
}
int main()
{
void (*fp)(char *s);
fp=Inovke;
fp("hello,world");
FP f[]={f1,f2};
f[0]("hello");
CallBack(PrintTest,"hello,world");
return 0;
}