Reading user phone number, part 2 of 3.

In this lesson:
  • stripping spaces out of the phone number string
  • using character pointers to move thru the chars in a string
Running time: 17:10
 
 

Comments (1)

 

Lots of pointer manipulation here to get rid of the spaces in our string.

Again, you can see my thought process as I correct errors. Plenty of issues once again as I debug the code.

In the next part, we'll finally be checking to see if our phone number conforms to one of the allowed patterns.

Don't worry if you are confused about this character pointer business! Pointers are confusing - I've been doing this a long time, and you can see they still give me a headache at times.