Assignment Example: Sample on How to Start Programming in C++

First, you will need to install an IDE. In this example, I will use Microsoft Visual Studio. You can download the free version, Visual Studio Community, from the official website:

visualstudio.com/en-us/products/visual-studio-community-vs.aspx

how-to-start-programming-in-c-1

Run the downloaded file:

how-to-start-programming-in-c-2

In the installation window you will be able to choose the directory for Visual Studio (in my case, it’s C:\work folder\VS):

how-to-start-programming-in-c-3

After you have chosen the folder, click “Next” and proceed to the component selection window:

how-to-start-programming-in-c-4

Push next and begin the installation:

how-to-start-programming-in-c-5

When the installation is complete, press the “LAUNCH” button:

how-to-start-programming-in-c-6

So, let’s write our first program. First, create a new project:

how-to-start-programming-in-c-7

In the new window, select:

how-to-start-programming-in-c-8

You can change the name and the location of the project if you want.When the project is created, you should add a new C++ source code file. In the right side of the screen, right-click “Source files” → Add → New Item…

how-to-start-programming-in-c-9

Add the .cpp file:

how-to-start-programming-in-c-10

Then, type the following text to the new source file:

#include <iostream>

using namespace std;

int main()
{
	cout << "Hello world!!!" << endl;
	system("pause");

	return 0;
}

how-to-start-programming-in-c-11

Press Ctrl+Shift+B to build the program, and then F5 to run it:

how-to-start-programming-in-c-12

Congratulations! Now you can start programming in C++!

Here we provide an assignment example for students who don’t know how to deal with their homework. We often present sample projects in C# that can be the most useful for students. If you can’t start your handling your homework, we suggest to leave it to AssignmentShark.com. If you like our assignment example, our expert can complete a similar assignment for you as well. We have a team of experts who are knowledgeable in different spheres of study. You can check out testimonials on our site to ensure we are the best option for you. Get our professional help and forget about your assignment problems!

Leave a Reply

Your email address will not be published. Required fields are marked *

Customer testimonials

Submit your instructions to the experts without charge.