01.03.2013 Views

g. surgulaZe, g. janeliZe, i. xuciSvili

g. surgulaZe, g. janeliZe, i. xuciSvili

g. surgulaZe, g. janeliZe, i. xuciSvili

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

marTvis gadacemas WdiT moniSnul operatorze. WdiT moniSvna ki aris<br />

saWiro operatoris (sadac gvinda gadasvla) win Wde : -is Cawera.<br />

magaliTad, fragmentSi:<br />

x=y++;<br />

goto abc; /*gadadi abc-Ti moniSnul operatorze*/<br />

z=x+y;<br />

abc: z=x*y;<br />

pirveli x=y++; operatoris Semdeg Sesruldeba z=x*y; da ara z=x+y; aq<br />

abc aris Wde, xolo abc : ki aris z=x*y; operatoris moniSvna.<br />

Cvens programaSi gamoyenebulia goto m; da amitom Sesruldeba m : -<br />

iT moniSnuli operatori return 0;. risTvis dagvWirda upirobo<br />

gadasvla programis dasasrulze? saqme isaa, rom gayofis Sesrulebis<br />

dros case '/' : blokSi goto m; operatori rom ar CagverTo, anu<br />

yofiliyo<br />

case '/' : if(y!=0) z = x / y; else printf("0-ze gayofa akrZalulia!");<br />

0-lis toli gamyofis SemTxvevaSi programa dagvibeWdavda 0-ze gayofa<br />

akrZalulia!z=73.<br />

es moxdeboda imitom, rom Sesruldeboda switch-gadamrTvelis<br />

momdevno operatoric printf("z=%d", z); cxadia, rom aseTi pasuxi<br />

gaugebaria: erTis mxriv, 0-ze gayofa ar SeiZleba, meores mxriv ki<br />

z=73 (e.i. daibeWda z-is Tavdapirveli mniSvneloba). miuxedavaT imisa,<br />

rom informacias z=73 aranairi kavSiri 0-ze gayofasTan ara aqvs,<br />

SeiZleba vifiqroT, rom raRaca gayofa TiTqos da Sesrulda.<br />

unda aRiniSnos, rom C-s nebismieri programa SeiZleba daiweros<br />

goto operatoris gamoyenebis gareSec, rac programirebis karg stilad<br />

iTvleba. mogvianebiT moviyvanT am programas goto-s gareSe.<br />

50

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

Saved successfully!

Ooh no, something went wrong!