C++ Win32 Console Tutorial 4 - Variables and Data Types 



Variables 
• Hold data in memory
• Are assigned a data type
• The data can change throughout the program's operation
• The data must be the same data type as assigned to the variables

Common Data Types 
string - Text “Hello World”
short - Integer -32,768 to 32,767
int - Integer -2,147,483,648 to 2,147,483,647
float - Floating Point 3.4 +/- 38
double - Floating Point 1.7 +/- 308
bool - Boolean true or false

Full List of Data Types 
msdn.microsoft.com/en-us/library/s3f49ktz%28v=VS.100%29.aspx

Code Download
CPPW32T4.zip