|
[Sponsors] |
October 31, 2011, 08:21 |
Fortran 95 Program Help
|
#1 |
New Member
Mitchell Taulbee
Join Date: Oct 2011
Posts: 1
Rep Power: 0 |
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!
|
|
November 4, 2011, 08:40 |
|
#2 |
Member
Join Date: Jul 2011
Posts: 59
Rep Power: 14 |
you could use the "where" statement
where ( guess_array = hit) ship = hit end where sorta like an if statement only for an entire array |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Call Fortran program from OpenFoam | tsjb00 | OpenFOAM Running, Solving & CFD | 6 | April 22, 2013 15:26 |
Fortran Program with FLUENT UDFs | gautamcfd | FLUENT | 0 | August 17, 2010 05:39 |
How to link my fortran program to UDFs? | Sam | FLUENT | 0 | October 29, 2008 03:57 |
control plotting in fortran program | zhe zhang | Main CFD Forum | 2 | November 16, 1999 13:10 |
Any numerical triple integration program is available in Fortran? | Radhakrishnan | Main CFD Forum | 3 | March 4, 1999 01:03 |