Help with Segmentation Fault

Question

I am trying to code a guessing game between two players in which they can bass only every other turn. I when I tried running the most recent code, I am getting a segmentation fault. Can anyone help? The paste bin for the code is below. I think I am having the most trouble with my char array player_entry. I wanted it to take the players string input.

http://pastebin.com/raw/yA0QYizh

*edit 1: updated the paste bin to change the syntax error that u/flexibeast pointed out. oops xD

Posted Oct 24, 2016, 6:37 AM UTC · edited

03
Loading comments…