. : : Assembly Language : : .  |  首页  |  我提出的问题  |  我参与的问题  |  我的收藏  |  消息中心   |  游客  登录  | 
刷新 | 提问 | 未解决 | 已解决 | 精华区 | 搜索 |
  《汇编语言》论坛 ->C/C++语言
  管理员: assembly   [回复本贴] [收藏本贴] [管理本贴] [关闭窗口]
主题 : :  c++类问题  [待解决] 回复[ 3次 ]   点击[ 490次 ]  
12sunfeng34
[帖 主]   [ 发表时间:2011-03-25 21:38 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2010-08-15 21:22
ArActionDesired *ActionGo::fire(ArActionDesired currentDesired) 请问这是类成员函数的定义吗?“ArActionDesired *ActionGo”这是什么意思?
qfh12345678
[第1楼]   [ 回复时间:2011-03-28 19:56 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2011-03-28 17:39
这句话你可以这样理解,首先这是在定义函数,函数名为fire,函数的返回值类型为ArActionDesired的指针,这个ActionGo是一个类,ActionGo::fire()这种写法表示函数fire是类ActionGo的成员函数,换种写法你应该能看的更明白些:ArActionDesired*  ActionGo::fire(ArActionDesired currentDesired)
qfh12345678
[第2楼]   [ 回复时间:2011-03-28 19:56 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2011-03-28 17:39
这句话你可以这样理解,首先这是在定义函数,函数名为fire,函数的返回值类型为ArActionDesired的指针,这个ActionGo是一个类,ActionGo::fire()这种写法表示函数fire是类ActionGo的成员函数,换种写法你应该能看的更明白些:ArActionDesired*  ActionGo::fire(ArActionDesired currentDesired)
12sunfeng34
[第3楼]   [ 回复时间:2011-03-30 07:27 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2010-08-15 21:22
谢谢指点
需要登录后才能回帖 -->> 请单击此处登录
    Copyright © 2006-2024   ASMEDU.NET  All Rights Reserved