//去空,将"123
"变成"123"
void deleteEndNull(char * str)
{
char * temp = str;
int count = 0;
while((*temp) != ' ' && count <= strlen(str))
{
count++;
temp++;
}
*temp = '\0';
}