Advertisement
totobac

Untitled

Jan 16th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. void yearsRecursion(char newForestTerrain[][100], char forestTerrain[][100] , const int n, const int m, int years)
  2. {
  3.     if (years == 10)
  4.     {
  5.         loopWithRecursion(forestTerrain, newForestTerrain, 0, 0, n, m);
  6.     }
  7.     else
  8.     {
  9.      loopWithRecursion(forestTerrain,newForestTerrain, 0, 0, n, m);
  10.      copyForNextYears(newForestTerrain, forestTerrain, 0, 0, n, m);
  11.      yearsRecursion(newForestTerrain, forestTerrain, n, m, years - 10);
  12.     }  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement