Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ cheat sheet

255, 0377, 0xff             // Integers (decimal, octal, hex)
2147483647L, 0x7fffffffl    // Long (32-bit) integers
123.0, 1.23e2               // double (real) numbers
'a', '141', 'x61'         // Character (literal, octal, hex)
'
', '', ''', '"'      // Newline, backslash, single quote, double quote
"string
"                  // Array of characters ending with newline and 
"hello" "world"             // Concatenated strings
true, false                 // bool constants 1 and 0
nullptr                     // Pointer type with the address of 0
Source by github.com #
 
PREVIOUS NEXT
Tagged: #cheat #sheet
ADD COMMENT
Topic
Name
8+2 =