Help me sortarisma (metrisi sixnotitas)
Dimitris Mexis
m65 at vivodinet.gr
Thu Jul 6 13:13:33 EEST 2006
Kalos, katalava. Tha asxolitho me tin lisi tou V13. Alla.
1) ta sxolia ston kodika, den ta vazo gia allous alla gia mena! Gia
na thimamai ti exo kanei! polles fores den sou exei tixei na berdevese kai
na xehnas?
2) h main einai kati grammes perisoteres den ipirxe skopos na trexeis to
programma. Gia afto den xreiazete na ta honeis. I 3 sinartiseis boroun na
xrisimopoiithoun kalista me
int main(int argc, char *argv[])
{
double matrix[10];
cout << "before..." << endl;
for ( int i = 0; i < 10; i++ ){
matrix[i] = 10 - i;
matrix[3] = 3;
matrix[4] = 3;
matrix[1] = 2;
matrix[0] = 0;
cout << matrix[i] << endl;
}
freq_array( matrix, ( sizeof( matrix )/sizeof( matrix[0] ) ) );
exit(0);
}
alla den nomizo oti ena ebeiro mati tha xreiastei na trexi ton kodika e?
;-)
3) To provlima einai oti nai isos den einai o kaliteros kodikas,
SIGOURA, alla i "group by" opou kano delete kai null ta dedomena, THA
eprepe na doulevi. Alla vlepo oti adi na kanei freq[d] = 1 p.x. giati
tmpFreq[d] = 1 leei se asxeto xrono, freq[d] = -0.021 gia paradigma.
Pistevo einai teleios programmatistiko kai sigoura ehei na kanei me tous
pointers.
4) Opote ithela prin asxolitho me ton tropo pou edeixe o V13, na
prospathousa na lina to provlima tis sinartisis, mia kai eidi mou pire
poli xrono. Min paei gia petama etsi.
5) Opos panta.Efharisto.
More information about the Linux-greek-users
mailing list