楼主:
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>'
请问要怎么改才能正确抓到座标呢?@@