0

Could someone please tell me what's wrong with this code? It's c++.

#include <iostream> using namespace std; int main() { cout << " Hello there, mister." << endl; cout << " How are you today?"<< end; cout << " Hello there, mister. \n How are you today?"; return 0; }

5th Jun 2018, 3:26 PM
Eboney Parks
Eboney Parks - avatar
3 odpowiedzi
+ 6
maybe endl instead of end in line 5 Edit: You can include (also non-public) codes to your posts, which makes answering easier
5th Jun 2018, 3:28 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 1
God, I'm so slow... Thank you Aaron. Really amusing that I ended up making the same mistake every time I wrote that code.
5th Jun 2018, 3:32 PM
Eboney Parks
Eboney Parks - avatar
0
Everybody needs to start somewhere. Just keep coding :)
5th Jun 2018, 3:37 PM
Aaron Eberhardt
Aaron Eberhardt - avatar