Wo ist der Fehler in meinem C++-Code?
Hi,
ich habe mit dem Programmieren angefangen. Mein Code geht nicht. Wo ist der Fehler?
#include <iostream>
int main() {
int x = 5
int y = 10
int z = x + y
std::cout << "Das Ergebnis von x und y ist: " << z << std:endl
int a = 7
int b = 3
int c = a * b
std::cout << "Das Ergebnis von a und b ist: " << c << std:endl
int d = 42
int e = 0
int f = d / e
std:cout << "Das Ergebnis der Division von d durch e ist: " << f << std:endl
char* str = "Hi Welt!"
std:cout << str << std:endl
return 0
}
You can’t share with 0.
Can check if split by 0 before.
It must also std::endl.
It is extremely stupid to use a development environment for entry without usable error messages. To be honest – I’m not aware of any error messages. I see some mistakes here – but you have to learn to find and interpret the error messages yourself / get smart. Otherwise, you are simply wrong with this subject.
the
You don’t like semicolons, do you?
What do you mean?
You must set a semicolon (;) at the end of each instruction.
only
nö
Okay.
😀
He knows he loves