c++ operator overloading

Christos Ricudis ricudis at komodino.itc.auth.gr
Fri Feb 25 11:07:00 EET 2005


Antonis Valakas wrote:

> Ως παλιός developer, πρώην [sys|net]admin και νυν συστεμάς γενικώς, το

> μόνο που έχω να σας πω είναι ΓΡΑΦΤΕ ΣΩΣΤΟ ΚΑΙ ΠΟΙΟΤΙΚΟ ΚΩΔΙΚΑ.


O swstos kai poiotikos kwdikas den exei ka8olou plaka.

GIATI na grapsw

switch a[5] {
       case 1 : b=3;
       case 2 : b=6;
       case 3 : b=8;
       default : b=9;
}

th stigmh poy mporw na syntaraksw sy8emela thn anousia, bareth 
pseydais8hsh asfaleias tou mikroastou programmatisth, na ton tarakounhsw 
kai na ton kanw na anarwth8ei gia thn Yparksh, na tou deiksw pws na 
niwsei thn apognwsh kai thn mataiothta ths zwhs, thn pantodynamia ths 
mh-peraths texnhs kai pneymatos panw ston fthno, peperasmeno, mataio 
ylismo, xrhsimopoiwntas to :

b=(5[a]==1?3:(5[a]==2?6:(5[a]==3?6:9)));



-- 
Christos Ricudis				ricudis at itc.auth.gr
Systems Administrator				+30-2310-998656
IT Support Center
Aristotle University of Thessaloniki, GREECE




More information about the Linux-greek-users mailing list