Fortran 95 Program Help
Hello everyone. I'm currently working on a battleship program in Fortran 95. I need help with how to compare the arrays that contain the ships, and the array that will be used for the users guesses. They are character arrays if that helps at all. Any help would be greatly appreciated!
you could use the "where" statement
where ( guess_array = hit)
ship = hit
sorta like an if statement only for an entire array
|All times are GMT -4. The time now is 03:09.|