Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

data types in c++

int myNum = 5;               // Integer (whole number)
float myFloatNum = 5.99;     // Floating point number
double myDoubleNum = 9.98;   // Floating point number
char myLetter = 'D';         // Character
bool myBoolean = true;       // Boolean
string myText = "Hello";     // String
Source by www.flatech.com.au #
 
PREVIOUS NEXT
Tagged: #data #types
ADD COMMENT
Topic
Name
5+6 =