[问题] 在cc档抓节点座标

楼主: ssddy (雨剑)   2010-12-15 09:18:39
查了网络上写
double x = 0.0, y = 0.0, z = 0.0; //传入三变量
Node *thisnode; // 宣告指标
thisnode = Node::get_node_by_address(index); ←这行make时出现error
((MobileNode *)thisnode)->getLoc(&x, &y, &z);
可是我把这几行加入recv function时,make出现错误(如上标示)。
invalid conversion from 'char*<*>const char*,int>'to 'nsaddr_t>'
initializing argument 1 of 'static Node* Node::get_node_by_address<nsaddr_t>'
请问要怎么改才能正确抓到座标呢?@@
作者: abilitylife   2010-02-16 00:01:00
把index转型成nsaddr_t试试

Links booklink

Contact Us: admin [ a t ] ucptt.com