U
usenet
Kindly pardon my ignorance, but what is the way to declare a constant
attribute of type string within a class?
Thanks,
Gus
attribute of type string within a class?
Thanks,
Gus
Kindly pardon my ignorance, but what is the way to declare a constant
attribute of type string within a class?
Thanks,
Gus
red said:#include <string>
class C {
const std::string a_const_string;
};
std::string C::a_const_string("Some string value here");
Kindly pardon my ignorance, but what is the way to declare a constant
attribute of type string within a class?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.