gpt4 book ai didi

c++ - C++中双冒号的全名

转载 作者:可可西里 更新时间:2023-11-01 18:40:46 44 4
gpt4 key购买 nike

如果我有一个类:

class A{
public:
A();
void print();
private:
int value;
};

A::A() {value = 0;}
void A::print() {cout << value << endl;}

最后两行的::符号的完整名称是什么?

最佳答案

What is the complete name of the :: symbol in the last 2 lines?

它是“范围解析运算符”。

Does anyone know the answer?

是的。

Is this the weirdest question you ever been asked?

没有。

关于c++ - C++中双冒号的全名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10941045/

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