Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
danke dir für deine Großartige HILFE bisher
lg an C Stoll
Du mußt schon in der Schleife die Zwischenergebnisse mitspeichern und aktualisieren:
cin>>sum;//erste Zahl der Reihe while(cin>>op>>zahl && op!='!') { switch(op) { case '+': sum+=zahl;break; ... } }