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.

  1. Modify the program from today’s lesson to output the text of your choice.
  2. 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!

  1. No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 72 other followers

%d bloggers like this: