标题:[求助]新手学c++,几行代码出错 不知怎么改
取消只看楼主
月影传说
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-11-14
 问题点数:0 回复次数:0 
[求助]新手学c++,几行代码出错 不知怎么改
#include<iostream.h>
class CA
{
public:
char lcFun(int a){ return a; }
};
CA ca;
typedef char (CA::*PTRFUN)(int); //这是什么意思?请各位大侠详细讲一下
PTRFUN pFun;
int main(int argc,char *argv[])
{
pFun = CA::lcFun;
ca.(*pFun)(2);
return 0;
}
搜索更多相关主题的帖子: 代码 
2006-11-28 10:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-105825-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.083205 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved