- #include <iostream>
-
using namespace std;
-
-
class test
-
{
-
public:
-
typedef int (*FUN)();
-
FUN f;
-
};
-
-
int a()
-
{
-
return 1;
-
}
-
-
int main(int argc, char *argv[])
-
{
-
test t;
-
t.f = static_cast<test::FUN>(&a);
-
cout << t.f() << endl;
- }