|
|
class Increment{
public:
Increment(int c=0,int i=1);
private:
int count;
const int increment;
}
Increment::Increment(int c,int i)
:count(c), //line 23
increment(i)
{
}
在编译时显示错误
fig07.C:23: error: new types may not be defined in a return type
fig07.C:23: error: return type specification for constructor invalid
请问怎么回事? |
|