vc++初级问题
来源:百度知道 编辑:UC知道 时间:2024/09/28 11:05:09
vc++中::这个符号是什么意思?
怎么没人回答呀...程序里好多这个符号.什么意思呢
怎么没人回答呀...程序里好多这个符号.什么意思呢
在类的外面定义类成员函数会用到,如:
class Employee
{
protected:
int ID;
...
public:
int getID();
...
};
int Employee::getID()
{
return ID;
}
最好看看C++的书
作用域