Eng.Leithy
04-25-2010, 08:56 PM
Salam Alikom
Attached a sample from your project phase 1
de simple sample :) ya3ni shaghala 3la el cases el sahla
hatla2o m3a el sample.exe fe file document bawariko samples lama shaghalto.
http://h3sonline.com/forums/attachment.php?attachmentid=3326&stc=1&d=1272218006
el matloop fe phase 1 howa 7aga zy kda program tedakhalo expression 3ady
5+3*6 we el shakl da bensameeh infix expression
we b3din el program lewa7do ye7awel da el el awel le
536*+ eli howa el RPN : reverse polish notation (or postfix expression)
we hatla2o fe error case bet7sal lma adkhal masln rakam more than one digit fel expression aw rakam float ya3ni hatla2ooh shaghal integers bs now, we da 3shan shaghal 3la single characters msh mesatkhdem function atoi() wna ba3ml parsing we kda
we da eli ento mmkn tekamelooh 3la eli hashra7o isA we lw le72t hab2a azabato yeshtghal 3la kol el cases
bas de sample knt bagarab a3mlha bsor3a 3shan ashra7lko el kalam da fel section el mogama3 isA bas mafish wa2t sara7a azabat-ha for more than one digit now
el mohem tefhamo el fekra we msh lazm te3mlo kol el cases sa7 mn el awel
7awlo te3mlo ay cases sahla el awel mn kol phase zy ma2oltlko abl kda
3shan tedmano goz2 mn el dargat, we da a7san ma tebd2o te3mlo 7ga shaghala 3la kol el cases we matl72oosh tekhalasooha
we tab3an lw 7ad a3d ye test haytla3 error cases tania
kol da msh mohem el mohem eno by support el simple cases 3la el a2al fa eli ye3ml kda mmkn yekamel fe phase 2 we 3 3shan yengez we yedman dargat 3la program shaghal isA.
Thanks
Alaa Leithy
Attached a sample from your project phase 1
de simple sample :) ya3ni shaghala 3la el cases el sahla
hatla2o m3a el sample.exe fe file document bawariko samples lama shaghalto.
http://h3sonline.com/forums/attachment.php?attachmentid=3326&stc=1&d=1272218006
el matloop fe phase 1 howa 7aga zy kda program tedakhalo expression 3ady
5+3*6 we el shakl da bensameeh infix expression
we b3din el program lewa7do ye7awel da el el awel le
536*+ eli howa el RPN : reverse polish notation (or postfix expression)
we hatla2o fe error case bet7sal lma adkhal masln rakam more than one digit fel expression aw rakam float ya3ni hatla2ooh shaghal integers bs now, we da 3shan shaghal 3la single characters msh mesatkhdem function atoi() wna ba3ml parsing we kda
we da eli ento mmkn tekamelooh 3la eli hashra7o isA we lw le72t hab2a azabato yeshtghal 3la kol el cases
bas de sample knt bagarab a3mlha bsor3a 3shan ashra7lko el kalam da fel section el mogama3 isA bas mafish wa2t sara7a azabat-ha for more than one digit now
el mohem tefhamo el fekra we msh lazm te3mlo kol el cases sa7 mn el awel
7awlo te3mlo ay cases sahla el awel mn kol phase zy ma2oltlko abl kda
3shan tedmano goz2 mn el dargat, we da a7san ma tebd2o te3mlo 7ga shaghala 3la kol el cases we matl72oosh tekhalasooha
we tab3an lw 7ad a3d ye test haytla3 error cases tania
kol da msh mohem el mohem eno by support el simple cases 3la el a2al fa eli ye3ml kda mmkn yekamel fe phase 2 we 3 3shan yengez we yedman dargat 3la program shaghal isA.
Thanks
Alaa Leithy