头文件private:const char * const _head;如何在.CPP里实现它
ianok 2005-12-26 02:39:57 如:.H里有:
/**
* parameter "a"
*/
float _a;
public:
float getA();
void setA(float newVal);
那么.cpp里就有:
/**
* parameter "a"
*/
float FormulaParameterVO::getA(){
return _a;
}
/**
* parameter "a"
*/
void FormulaParameterVO::setA(float newVal){
_a = newVal;
}
想问的是如果.h里是const char * const _head;.cpp里怎么写