函数不更改传递的指针C+。
targetBubble
bool clickOnBubble(sf::Vector2i & mousePos, std::vector<Bubble *> bubbles, Bubble * targetBubble) { targetBubble = bubbles[i];}
Bubble * targetBubble = NULL;clickOnBubble(mousePos, bubbles, targetBubble);
小唯快跑啊
郎朗坤
慕桂英546537
相关分类