2012-11-02 27 views

回答

4
char* s = "abcd"; 
int i = strlen(s); 
char lengthAsString[50]; 
sprintf(lengthAsString, "%d", i); 

// now you can use lengthAsString to pass it to a function