Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. int countClosedPositions (struct minePosition** mineMatrix, int nRows, int nCols)
  2. {
  3. int numberOfClosedPositions = 0;
  4. for(int i = 0, i < nRows){
  5. for(int j = 0, j < nColumns){
  6. minePosition p = mineMatrix[i][j];
  7. if(p.open == true){
  8. numberOfClosedPositions++;
  9. }
  10. }
  11. }
  12. return numberOfClosedPositions;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement