Use VS 2019
opening code: #include <iostream>
; for ending for a completed syntax
Ctrl + F7 hot key to Comply → Build to integrate different sets of codes together
Variables: integers, boolean, double, floats...
(a data stored in different types of memory)
Set variable: inset between opening code
it means integer variable, name as VariableTest, value 69 data stored
To print the value in screen/application, type in main content:
click play (i.e. Local Windows Debugger command) to see:
To change variable value before it prints on screen:
Signed and unsigned variables (make to unsign to double integers)
just type unsigned at front of integer
Difference between integer and float (float has decimal places, with 4 byte of memory, integer no)
Change varialbletest to floattest, and add the intro as 101.11
referencing the float, by typing below in the main body
add f after the number, to make it as float, otherwise it will be treated as double
Double is double amount of memory than float, i.e 8 bytes of memory instead of 4
Referencing differently this time
Boolean: mean true/false, so only 1 byte of memory, commonly use for if statement
now the value will be 0, because set as false
if add the script in body below, it will become 1