用dev c++编译的.怎么会不对呢?
#include<iostream.h>class A
{
int value;
public:
A(int a):value(a){}
int getvalue(){return value+344;}
};
int main()
{
A kk(35);
A *point=&kk;
int (A::*array)()=A::getvalue;
cout<<(point->*array)();
cin.get();
return 0;
}
我改用了dev c++编译器,但是这个程序不对哦.到底是什么回事.
谢谢.~~~~
还有啊,它出现这些提示到底是什么意思啊?
Waring:in function int main()
assuming pointer to member int
a ponter to member can only be