English
Source / code snippets

Dropped calculate Evaluierung Gleichung String

 
an in a String Dropped Gleichung calculate.<hr>
CompileMarkSeparation
print "iF-Calcer :)";chr$(10)
declare os$,s$,stack&,num&,oop$,op$,tmp$
s$="20*300-1+1+4:2:2*10="
os$=s$
stack&=0
oop$=""
op$=""

while len(s$)

    tmp$=""

    while (ord(mid$(s$,1,1)) > 47) and (ord(mid$(s$,1,1)) <58) and len(s$)

        tmp$=tmp$+mid$(s$,1,1)
        s$=del$(s$,1,1)

    wend

    oop$=op$
    op$=mid$(s$,1,1)
    s$=del$(s$,1,1)

    ifnot len(oop$)

        stack&=stack&+val(tmp$)

    elseif oop$="+"

        stack&=stack&+val(tmp$)

    elseif oop$="-"

        stack&=stack&-val(tmp$)

    elseif (oop$="/") or (oop$=":")

        stack&=stack& / val(tmp$)

    elseif (oop$="*") or (oop$="x")

        stack&=stack& * val(tmp$)

    endif

wend

print os$;stack&
waitkey
end

iF
 
05/12/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.276 Views

Untitledvor 0 min.
RudiB.02/03/13
Julian Schmidt02/01/13
Frank Vorholzer04/12/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie