gpt4 book ai didi

c++ - 在 C++ 中,多继承类中的下划线符号是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-03 10:20:29 26 4
gpt4 key购买 nike

代码如下:

PiGenerator::PiGenerator(PP_Instance instance)
: pp::Instance(instance),
graphics_2d_context_(NULL),
pixel_buffer_(NULL),
flush_pending_(false),
quit_(false),
compute_pi_thread_(0),
pi_(0.0) {
pthread_mutex_init(&pixel_buffer_mutex_, NULL);
}

或者这甚至是多重继承?谁能赐教一下?

最佳答案

这(可能)只是一种约定:通常,private 变量声明时带有尾部下划线,以便人们可以轻松识别它们。

关于c++ - 在 C++ 中,多继承类中的下划线符号是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7302122/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com