When we use variables, we need to specify the type for robots C to know how to allocate memory to it. bool is the simplest variable, it only has two possible values, true or false, which could also be one or zero. That char variable, which is actually for character, which is typically used for storing letters A to Z. The int variable is used for whole numbers without decimal points, which can be positive or negative. Float and double are used when we need to work with numbers that have a decimal point. Double will use more memory as it stores 64 bit values compared to floats 32 bit 64 bit allows for more precision though.
Another variable type you'll encounter in our programs is void We'll use it for functions that don't return any values. There are other variable types you might use in robots See, but we won't need them for now. If you'd like to read more about variables in robot See, follow the link to the robots see website and you will find a lot of extra documentation their robot see has some rules for creating variables and naming them. A variable name can consist only of capital or lowercase letters A to Z, the underscore character and digits zero to nine. The first character must be a letter or underscore. blank spaces are not to be used in variable names, and special characters like hash or dollar are not allowed c++ key words can also not be used as variable names.
Same with names that are already used by robots See, variable names are case sensitive. And remember to give the variable a type like character, int, float, double or void.