The purpose of this program is to get a user to input a random string of characters and then sort the input into three different arrays: one array for numbers, one array for letters, and one array for special characters. I'm using a switch statement embedded in a for loop in order to do this. I've verified that the switch statement works properly. The problem is saving the characters to their respective arrays. The program "works" properly, but the data I obtain is incorrect. I appreciate any help or advice you might have. Here is the code:
Yep, that definitely worked. I should have realized I needed a counter for that. I've never used the cctype commands before, so I'll play around with them and get to know them better. I really appreciate the help.