C++ Booleans and flow control,

C++ Booleans are a byte sized memory space which simply holds the data variable for " is it true or is it not?". Programmers usually put the word "is" in front of the variable so that it reads more English like. So a bool is likely to be named isbeautiful or isCorrect, rather than simply beautiful which could be an int rating from 1 - 10. Adding the "is" to a variable such as "cold" does not...
Read More

Lesson 4 – C++ Char Type, String Type

Diving into the c++ char type. This very small memory type holds enough space for 1 English type character. Below x is a single char. However, y is an array of chars. Both c and c++ have several ways of expressing an array of chars. char x = 'C';char y = {'C','h','e','r','r','y','\0'}; /* We look at the char type that holds single characters Programmer: Jane Doe Date : May 2020 */ #include...
Read More

Lesson 3 – C++ int to Double – explicit cast

Let's discuss the c++ int to double and explicit casting. Without the casting a strange kind of math occurs -- one that might surprise your math teacher. int x=1, y=2;double z;z = double(x) / y; /* We look at the double data type it can hold #'s with decimal points Programmer: Jane Doe Cause : C++ Int to Double, explicit cast Date : May 2020 */ #include <iostream> using namespace std; int...
Read More

Lesson 2 – C++ int variables

The int and double. There are many arcane tings' about C++ programming that we are not going to get into immediately in order to keep things simple. Those are for advanced developers. The aim is to quickly push you through so that you are programming as quickly as possible. Remember that you can copy and paste this code up at and test it immediately. The online compiler is your friend. /* We...
Read More
c++ Tutorial online programming. Girl in black sitting in front of computer pausing to think.

C++ Tutorial Online Programming Secrets

C++ Tutorial - Lesson 1 Online Programming c++ tutorials can be best learned by ... Giving the lesson "Quality Time"Review the online programming examples more than oncePractice - ( code from memory on paper, then code into your compiler/editor and check for errors )Teach some other fool about c++ programming - no one available? Talk to the wall. So let's start learning a bit of c++ tutorial...
Read More
Top