When I do a code do I havw to put the entire code? Like it is below? hope i didnt leave anything out. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When I do a code do I havw to put the entire code? Like it is below? hope i didnt leave anything out.

#include <iostream> int main() { cout<<"hello world"; return 0; }

2nd Sep 2018, 6:42 PM
Michael Munn
2 Answers
+ 2
If we write program partially the code execution will not be successful, small things like statement termination symbol (semicolon in C++) can cause the program not to run as expected, or not running at all. But don't worry, you'll learn and develop, there's first time for everything : ) P.S. Since you didn't specify "using namespace std;" the "cout" will not be recognized in this code.
2nd Sep 2018, 7:15 PM
Ipang
+ 1
yes
2nd Sep 2018, 6:45 PM
hinanawi
hinanawi - avatar