2009-09-15

the thought of getting things done in loop condition

int i = 0;
int j = 0;
while((*(str + i) = *(str + j++)) != '\0')
  if(*(str + i) != ' ')
    i++;

No comments:

Post a Comment