-
Continue reading →: Learning C++: Public, Private and More ClassMy previous blog post introduced creating classes in C++, and I used public. Re-reading that post I realised I should go into a little more detail on public and private. Public and Private The spaces within C++ allow for data to be: public Public is available throughout the program. It…
-
Continue reading →: Learning C++: Introduction To ClassesIn this blog post I am going to take a look at creating classes in C++. This forms part of my learning C++ series of blog posts. A class is a type blueprint, which defines the characteristics and behaviours of all instances of the class. To create a class, the…
-
Continue reading →: Raspberry Pi Sense Hat (Raspberry Pi)The Raspberry Pi is a fantastic computer and the GPIO (General Purpose Input / Output) pins allow for lots of a different hats, or phats (Pi Hats). I have used some of these options in past project (e.g. a temperature project, a countdown display) and installation of the hats is…
-
Continue reading →: Learning C++: Switch StatementsMy previous blog post looked at If, Else and Else If statements which work, however C++ also has a tidier approach called switch statements. In the below example I have defined a character variable called response, initialised with the character ‘y’. I am then taking input and storing this input…
-
Continue reading →: Learning C++: For Loops, If, Else If and Else StatementsIn this C++ blog post I am going to look at For loops, If / Else and Else If statements. For Loops The for loop layout is made up of three parts: for (initialisation; conditional; iteration) { CODE-TO-CARRY_OUT } Initialisation Statement Carried out before the first loop is run and…
-
Continue reading →: Learning C++: Preprocessor, Compiler, Linker and “Hello, World!”My blog posts on C++ so far have looked at the basic data types and arrays, structs, enums and unions. With this blog post I am going to look at the 3 steps used to compile C++ and a brief look at writing “Hello, World!” in C++. C++ is a…
-
Continue reading →: Learning C++: Arrays, Enumerations, Structs and Unions (C++)In this blog post I am going to take a look at arrays, enumerations, structs and unions within C++. As with my previous post I am creating this blog entry as notes to myself for reference, but they also benefit others. First though some excellent (for me) news, on my…
-
Continue reading →: Learning C++, Basic Data Types and Operators (C++)The Coronavirus lockdown here in the UK is starting to ease, but it still means a lot of time at home. I’m trying to use that time to be more productive and learn more, which has lead me to C++. C++ C++ has a long history (going back to 1985)…
-
Continue reading →: Ansible’s Copy and Fetch ModulesIf you are moving files between computers then you may be doing this by transferring the files to a physical medium (e.g. a USB pen drive), via email or via scp. However, there are other options including Ansible which has two modules to help, Copy and Fetch. Copy The Copy…
-
Continue reading →: Installing And Configuring NGINX As A Reverse Proxy Via An Ansible PlaybookToday I am looking at installing and configuring NGINX with an Ansible playbook. In my previous blog posts I have looked at using an Ansible playbook to install the ELK (Elasticsearch, Logstash, Kibana) stack across three different computers, and then how Ansible roles can be used to organise a playbook.…


