Made this simple class with MSVC ++ 6.0
class Strg
{
public:
Strg(int max);
private:
int _max;
};
Strg::Strg(int max)
{
_max=max;
}
Sounds good if I use it in:
main()
{
Strg mvar(10);
}
But now, if I use it in another class:
class ok
{
public:
Strg v(45);
};
I get the error message:
error C2059: syntax error: constant
Could you tell me more please?
source
share