string s(argc[1]);
string
. I want this object to be named s
. I want you to make this object using the constructor function that will accept argc[1]
as a parameter.string ( const char * s );
Content is initialized to a copy of the string formed by the null-terminated character sequence (C string) pointed by s. The length of the character sequence is determined by the first occurrence of a null character (as determined by traits.length(s)). This version can be used to initialize a string object using a string literal constant. |