-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learning Qlik Sense: The Official Guide
By :

Our first C++ program will be written outside of UE4. To start with, I will provide steps for both Xcode and Visual Studio 2013, but after this chapter, I will try to talk about just the C++ code without reference to whether you're using Microsoft Windows or Mac OS.
In this section, we will install a code editor for Windows, Microsoft's Visual Studio. Please skip to the next section if you are using a Mac.
The Express edition of Visual Studio is the free version of Visual Studio that Microsoft provides on their website. Go to http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx to start the installation process.
To start, you have to download and install Microsoft Visual Studio Express 2013 for Windows Desktop. This is how the icon for the software looks:
Do not install Express 2013 for Windows. This is a different package and it is used for different things than what we are doing here.
Once you have Visual Studio 2013 Express installed, open it. Work through the following steps to get to a point where you can actually type in the code:
Note that there is a small box at the bottom with the text Solution name. In general, Visual Studio Solutions might contain many projects. However, this book only works with a single project, but at times, you might find it useful to integrate many projects into the same solution.
MyFirstApp
).Now you are in the Visual Studio 2013 environment. This is the place where you will do all your work and code.
However, we need a file to write our code into. So, we will add a C++ code file to our project, as shown in the following screenshot:
Add your new source code file as shown in the following screenshot:
You will now edit Source.cpp
. Skip to the Your First C++ Program section and type in your code.
In this section, we will talk about how to install Xcode on a Mac. Please skip to the next section if you are using Windows.
Xcode is available on all Mac machines. You can get Xcode using the Apple App Store (it's free), as shown here:
You might be tempted to click on the SpriteKit Game icon, but don't click on it.
Git is a Version control system. This basically means that Git keeps the snapshots of all the code in your project every so often (every time you commit to the repository). Other popular source control management tools (scm) are Mercurial, Perforce, and Subversion. When multiple people are collaborating on the same project, the scm tool has the ability to automatically merge and copy other people's changes from the repository to your local code base.
Okay! You are all set up. Click on the main.cpp file in the left-hand side panel of Xcode. If the file doesn't appear, ensure that the folder icon at the top of the left-hand side panel is selected first, as shown in the following screenshot:
Change the font size
Change margin width
Change background colour