Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
80
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.  
  4. int numberOfClosedPositions = 0;
  5. for(int i = 0, i < nRows){
  6. for(int j = 0, j < nColumns){
  7. minePosition p = mineMatrix[i][j];
  8. if(p.open == false){
  9. numberOfClosedPositions++;
  10. }
  11. }
  12. }
  13. return numberOfClosedPositions;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement