Best solution to represent Data[i,j] in c? -


is a pseudo-angle that I want to implement in C. But I suspect how to apply a part of it. Psuedocode is:

  Qi for every pair of states, and QJ, I and LT; J, D [i, j]: = 0 s [i, j]: = / code>  

i and j , in Qi and qj are everything.

How can I represent D [i, j] or s [i, j] It's simple and fast to use the data structure.

You can use something like

  integer length = 10; Int i = 0, j = 0; Int race 1 [10] [10] = {0,}; // index "length" value is based on int race 2 [10] [10] = {0,}; // index is based on the "length" value  

and then

 for  (i = 0; i  d [i, j]  and  s [i, j]  respectively  res1 [ 10] [10]  and  res2 [10] [10]  are called  two-dimensional array . 


Comments