Introduction
In this lesson, we are introduced to the C++ language and acquire a C++ IDE and compiler, before running some sample source code.
If you want to share your opinions, suggestions or corrections, you can comment on the video on YouTube or comment on the page here. Thanks!
Source Code
The source code featured in this video was as follows:
#include
int main()
{
// write output to the console
std::cout << "lorem ipsum dolor sit amet";
std::cout << std::endl;
std::cout << "Because we're all tired of 'Hello World!'" << std::endl;
return 0;
}
Exercises
There isn’t much that I can set you at this stage, but if you do want to have a think about something, consider these two problems.
- Modify the program from today’s lesson to output the text of your choice.
- Output some numbers, as well as text. There are two ways of doing this, one of which may not be obvious to you at the moment. Have a think about this one, but if you can’t do it then don’t worry, as we’ll discuss it next lesson.
I shan’t post solutions to these problems as it should be self evident whether they work or not. That said, feel free to post your solutions in the comments section so I can check them for you. Remember to use <code></code> tags!
tags!
Comments (0)
Leave a comment
