C
crichmon
Is there away to initialize an array's size through constructor
initialization?
Right now I have
///////////////
class foo
{
string bar[20];
public:
foo();
}
////
foo::foo()
{
};
////////////////
could something be done like
///////////////
class foo
{
string bar[];
public:
foo();
}
////
foo::foo(): bar[20]
{
};
////////////////
Any help?
thanks,
crichmon
initialization?
Right now I have
///////////////
class foo
{
string bar[20];
public:
foo();
}
////
foo::foo()
{
};
////////////////
could something be done like
///////////////
class foo
{
string bar[];
public:
foo();
}
////
foo::foo(): bar[20]
{
};
////////////////
Any help?
thanks,
crichmon