+ 1
Hello, everybody, I have written prity long code and I think it is correct.
https://code.sololearn.com/cHd9Nb17hOQ0/?ref=app But trouble is I do not know how to remove special chars and extra whitespaces from string arrays str3[], which represent the addresses. string str1[] are names of phone directory string str2[] are phone numbers string str3[] are addresses.
3 Antworten
+ 3
if character is not --alphabet Or number Or space --" remove it or don't copy into new one..
you can use isalnum() function to determine if character is alpha-numeric or not. For space, you can compare directly and use it if next character is not also space.
Hope it helps...
+ 1
Hello again, I do what you said, but it print empty string arrays.
+ 1
Finally it is done!