Thanks, I kinda figured the unsized array was the problem. I did try the sized array which if you noticed was commented out. What prevented the sized array from working was the function gets() . To fix I used getline() instead. Is there any reason in particular you specified the size of the array u...