30.01.2015 Views

Editura Sfântul Ierarh Nicolae ISBN 978-606-577-027-0

Editura Sfântul Ierarh Nicolae ISBN 978-606-577-027-0

Editura Sfântul Ierarh Nicolae ISBN 978-606-577-027-0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

}<br />

void GenereazaPermutare(int i, int j)<br />

{<br />

int k=2;<br />

st[1]=1;<br />

st[2]=random(MaxGena-1);<br />

while(j&&(k>1))<br />

{<br />

if (k==MaxGena)<br />

{<br />

CopieSolutie(i);<br />

j--;k--;<br />

}<br />

else if (st[k]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!