C++ Help!... Write a program that inputs a telephone number as a string in the form : 2222-2222.? - samples of telephone greetings
Write a program that a telephone number as a string in the form: 2222-2222.
The program has a function strtok to extract, and the number of his office as a symbol to print.
Sample Output
Enter the phone number
2498-9988
Extension number is
9988
Press any key to continue
Samples Of Telephone Greetings C++ Help!... Write A Program That Inputs A Telephone Number As A String In The Form : 2222-2222.?
3:26 AM
1 comments:
This is to ensure how strtok works, which continue to
Phone unsigned char [] = "2498-9988"
char * Pfor = strtok (Phone "-")'
\\ \\ \\ \\ Court \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, "The expansion is" \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt * Pfor \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; endl;
system ( "pause");
Post a Comment