I am trying to get rid of spaces from input. How would I do that? Thanks.
This is a discussion on Getting rid of spaces in C within the C Programming forums, part of the General Programming Boards category; I am trying to get rid of spaces from input. How would I do that? Thanks....
I am trying to get rid of spaces from input. How would I do that? Thanks.
Do you have the input in a char array, now?
Is a for loop ok to use?
Post up your try at it, please.
scanf with most formats does it automatically
If I have eight hours for cutting wood, I spend six sharpening my axe.