Jump to content

darakna

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

darakna's Achievements

Newbie

Newbie (1/14)

10

Reputation

  1. Vin cu o corectie: { vecini=0; if((i>0)&&(j>0)){if(m[i-1][j-1])vecini++;} if(j>0){if(m[j-1])vecini++;} if(i<n)&&(j>0){if(m[i+1][j-1])vecini++;} if(i>0){(if(m[i-1][j])vecini++;} if(i<n){if(m[i+1][j])vecini++;} if((i>0)&&(j<n)){if(m[i-1][j+1])vecini++;} if(j<n){if(m[j+1])vecini++;} if((i<n)&&(j<n)){if(m[i+1][j+1])vecini++;} } else m1[j]=1;
  2. Rezolvarea celei de-a doua probleme ar trebuie sa arate cam asa: Nu am mai programat demult asa ca C-ul meu e cam ruginit. Astept corecturile/intrebarile voastre. http://pastebin.com/HCH8YCkV
×
×
  • Create New...