C++ question: static
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 11 楼,当前显示第 4 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:Flying (等级:18 - 华新水车,发帖:16849) 发表:2003-06-04 14:35:00  4楼  评分: 
followon questionThanks, VeryGood. The compiler really complains about non-static member functions as shown in error message. My followon question is that: in a class defintion, there are acutally many non-static member function. Here the member function is private, does it matter? Is it possible to define a non-static private member function? TIA
It seems that you are confused...
1) The sample you gave above is NOT a declaration of member function. Instead, the typdef statement simply aliases a data type of member function pointer as "Omf" for the ease of reference.

2) No matter farray is declared as static or not, the syntax is acceptable! That is, there is NO compelling reason that farray must be declared static. Please double check.
Flying @way 吳穎暉
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 11 楼,当前显示第 4 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码