Guest User

Untitled

a guest
Dec 11th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. h_grid[(GRID_X * Y ) + X] += prob;
  2.  
  3. for (i = 0; i < GRID_LEN; i++)
  4. {
  5.     if (i%GRID_X == 0 && i != 0)
  6.          fprintf(fresult, "\n");
  7.     if(h_grid[i] == 0.0f)
  8.        fprintf(fresult, "0.0 ");
  9.     else
  10.        fprintf(fresult, "%G ", h_grid[i]);
  11. }
Add Comment
Please, Sign In to add comment