G
Guest
void myfunction(String * Parameter){
String* test0 = S"A"; // Parameter is also "A",but its details is not
very clear.
String *test1 = String::Format(S"head{0}tail",test0);
// the test1 is "headAtail"
String *test2 = String::Format(S"head{0}tail",Parameter);
// the test2 is "headA" , the charactors following A are all cut.}
I guess the Parameter has a terminative '\0' ,but I am not quite sure of
that.(The Watch Pannel shows that it is just a "A");
What 's the possible reason of this? How to avoid it?
String* test0 = S"A"; // Parameter is also "A",but its details is not
very clear.
String *test1 = String::Format(S"head{0}tail",test0);
// the test1 is "headAtail"
String *test2 = String::Format(S"head{0}tail",Parameter);
// the test2 is "headA" , the charactors following A are all cut.}
I guess the Parameter has a terminative '\0' ,but I am not quite sure of
that.(The Watch Pannel shows that it is just a "A");
What 's the possible reason of this? How to avoid it?