c++ operator overloading

Costas Barakitis bcostas at hol.gr
Fri Feb 25 11:22:00 EET 2005


> 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)));

Isws giati me ton prwto tropo vlepeis pio eykola typografika la6h. To 
trito case katala6os to evales na exei idia timh me to deytero :p

P.S: Pros 6eou den sou th lew, na mou kopei to xeri syriza :D





More information about the Linux-greek-users mailing list