64,637
社区成员
发帖
与我相关
我的任务
分享
void foo()
{
//do useful things here and terminate as needed
foo();
}
#define M(a)
int main(void)
{
M((((()))));
return 0;
}
struct helper
{
typedef helper (*pFunc)();
explicit helper(pFunc p): pf(p){}
operator pFunc const()
{
return pf;
}
pFunc pf;
};
helper foo()
{
//do something useful
return helper(&foo);
}
int main()
{
foo()()()()()();
return 0;
}
class A;
A func(void);
typedef A (* A_Ret)(void);
class A
{
public:
operator A_Ret (void) const { return(&func); };
};
A func(void) { return A(); };
int _tmain(int /*argc*/, _TCHAR* /*argv*/[])
{
func()()()()()()();
return 0;
}