Hello
i was wondering if someone can help me code a little bit, I understand how some of it works, and ill show what i have, I just dont know how to put this work in a loop. Thanks
If in starts with "abc32fe5v" it should end up with only alpha characters so Out should = "abcfev"
alpha - character array stores the eniter alphabet
1. strspn("abc32fe5v",Alpha) gives 3
2. strcpy the first 3 chars of "abc12de6x" to Out
3. strcspn("32fe5v",Alpha) gives 2, so skip over the net 2 chars of "21fe5v"
1. strspn("fe5v",Alpha) gives 2
2. strcpy the first 2 chars of "fe5v" to Out
3. strcspn("5v",Alpha) gives 1 so skip over 1 chars of "5v"
1. strspn("v",Alpha) gives 1
2. strcpy the first 1 char of "v" to Out
3. strcspn("",Alpha) gives 0 so skip over 0 chars of ""
loop ends because In is finished



LinkBack URL
About LinkBacks


