I am getting segmentation error but I don't know whats happening. I isolated it to this part. I want to mark the grid with the first letter of whatever the ship is called. For example, Battleship would be "B" and because the battleship is 4 grids long it would be.. B B B B
> FULL PROGRAM HERE if needed:
you should always provide enough code to reproduce your problem.
Given that you have a runtime error, that means `main()' and anything that it needs to compile and run.
Your program ask for input, so provide an example one.