Copies the C string pointed by source into the array pointed by destination, including the terminating null character.
To avoid overflows, the size of the array pointed by destination shall be long enough to contain the same C string as source (including the terminating null character), and should not overlap in memory with source.
Parameters
destination
Pointer to the destination array where the content is to be copied.
source
C string to be copied.
class A
{
public:
A(int j):i(j){}
mutalbe int i;
};
int main()
{
const A a(0);//a 是const类型的不能改变
a.i++; //但是a的成员i可以改变,因 i 被定义成了mutable型的
return 0;
}
或许对lz有用。。。。。