![]() |
How to input a telephone number and use function strtok to extract?
output should like that:
input #: (909)869-2511 area: (909) exchange: 869 ext.: 2511 #: (909)869-2511 this is my code so far: Code:
#include <iostream> |
Re: How to input a telephone number and use function strtok to extract?
I don't think I'd use strtok for that, just loop through the input string and pick out groups of digits.
|
Re: How to input a telephone number and use function strtok to extract?
Quote:
|
Re: How to input a telephone number and use function strtok to extract?
Thanks for sharing this i will try it
|
| All times are GMT +5.5. The time now is 12:34. |