05-05-2006, 12:48 AM
is this the right code? The matrix I get by hand is slightly different than the matrix i get with this code:
Is there supposed to be parenthesis around one of the boolean operations?
Code:
for (int k = 0; k < size; k++)
for (int i = 0; i < size; i++)
for (int j = 0; j < size; j++)
graph[i][j] = graph[i][j] || graph[i][k] && graph[k][j];
Is there supposed to be parenthesis around one of the boolean operations?
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.