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).
#include <iostream> using namespace std; int main() { int erg; int j = 2; erg = 2 * j+2; // j = 2 j +2 = 4 4*2 = 8 wieso bekomme ich hier eine 6 ausgeben ?! // erg = 2 * (j+2) ; // erg = 8 cout << erg; system("PAUSE"); return 0; }
Punkt-vor-Strich gilt auch in C++!