Ok, then it would be a rough ride. Some programming experience is helpfull as this course does not cover fundamentals of
C/C++ programming. How deep shoulde we go? As a mechanic you have at least technical understanding and logics, that is good!
So, assigning and using variables is a fundamental thing in every language. C++ covers most of C (like other C variantes do), and right now the object oriented behave is not relevant now. C is procedural, easier to learn.
In C variable have a name, a type and a value. When creating one you are forced to give it a type. Very simple example:
This declares a variable named "a" as of type "integer" and also assigns it a value of '1'.
There are serveral subtypes of numbers, like "float" for fractional numbers, "uint" for unsigned integers (can only be positive) or "sint" for signed integers (can be negative), "long" (stores biiig numbers), "ulong" and "slong" also.
You can find out how much memory used by a type using "sizeof()" function:
Normaly you don't care about how numbers are stored internally, so you don't know how much memory the compiler uses for a "int". If you need to be specific you can also use basic datatypes like "byte" (1 byte), "word" (2 bytes in machine order), "dword" (4 bytes), and so on.
When it comes to strings it's more complicated. What looks easy:
need some explaination. There is no "string" type in C. Text is in fact just a series of characters, or better an array of chars. This is what the declaration "char s[]" tells. The basic type is "char", the name "s" and the brackets "[]" denotes it as an array.