19
Tobey
7y

Go home C++
You are drunk

Comments
  • 8
    Hmm we don't know what you did too it's maybe not the fault of C++...
  • 2
    @theNox it calculates number1 + number2 nothing more and I don't know why this is coming out
  • 4
    @Tobey everything initialised properly? Correct data types?
  • 1
    @theNox they are normal integers
  • 0
  • 2
    This might be caused by operator order (although I remember this to work), e.g.
    cout << a + b;
    being interpreted as
    (cout << a) << b;
    versus
    cout << (a << b);

    Also: Austrian developers, assemble!
  • 0
    Lucky this doesn't segfault
  • 9
    You are adding the two numbers before the input, so there is only garbish in the variables. Try to copy line 16 and put it before "Es wurde". Then the addition happens after the input of the two numbers.
  • 2
    @Benedikt Thank you it worked 😉
  • 2
    I feel you
  • 0
    It should be 20. ;)
Add Comment