Coding Communicating with the Computer
Video
Key Takeways
- Errors are the way the computer communicates with you regarding your code.
- You’re never going to stop making errors, its a normal part of programming.
- To solve the errors, just scroll to the top, and try fixing only the first one.
- Just hit the run button to check if you have fixed it!
Video Addendum
You may have noticed that there was a \n
at the end of the example on Repl.
That is how you add a new line (enter key in MS Word). Try adding and removing \n
and seeing you notice a difference. std::endl
can also be used to print out a new line. In general, we prefer using
std::cout << "Hello world";
std::cout << std::endl;
over using
std::cout << "Hello world\n";
Assignment
- Sign up for a Repl account.
- You’ll be able create and store all of your repls so you don’t lose track of them.
- Sign up for the Slack Community.
- In a new Repl, write some code where you print some fun facts about yourself.
End of Assignment Checklist
- I finished all the assignments.
- I shared my assignments with others.
- I provided feedback for assignments of at least 2 others.
- I addressed the feedback from others and thanked them for the review.