Introduction to C++

Screen showing a main function in C++

This introduction to the C++ programming language uses a simple program to teach some of the basics. I’ll be using an example from the articles on setting up a C++ programming environment (links at the end of this article). It’s a simple “Hello World” program: The main() function I would now like to discuss this … Read more

Setting Up Linux for C++ Development

Hello-World in C++

To write C++ applications on Linux, you need a compiler and an editor (or an IDE). Installing a Compiler On Debian and Linux distributions based on Debian, start by running the following command: On openSUSE, run the following command as root: And on Fedora (versions 33 to 36), the following commands will do the job: … Read more

Setting up macOS for C++ programming

Create a new C++ project in CLion

To get started with C++ programming on a Mac, you need a compiler and a program for writing the code. This blog post explains how to install these components. Install a compiler A compiler may already be installed on the Mac. This is the case, for example, if Apple’s Xcode is installed. You can check … Read more