Practicing C++ coding
Now, it’s time to practice writing C++ code in VS. To simplify the learning process and avoid noise from the Unreal Engine code, we will use a pure C++ solution as the learning example.
Here are some recommendations to consider while editing the code:
- You don’t need to fully comprehend the source code at this stage; simply copy the provided C++ code in this section and concentrate on the editor features, as the C++ programming syntax will be introduced in the next chapter.
- Try using the introduced VS editing keys as much as possible.
- Type the code manually instead of relying on copy and paste, as this will assist you in quickly mastering editing skills and becoming familiar with the editing environment.
So, let’s get started.
Creating a new C++ solution in VS
Begin by starting VS from Windows and selecting Create a new project:
Figure 2.9 – VS: Creating a new project
Then...