Switch to full style
C++ code examples
Post a reply

C++ Constants

Thu Nov 13, 2008 1:50 pm

Define constants in C++
cpp code
'c'  	 	character
"string"
17 Decimal integer
3.14159
4e-10 Floating point
0371 Octal constant
0x3a3eb2 Hexadecimal constant
'unpleasant' Legal, very bad; most compilers warn you.
Reading: pp. 42-45, pp. 70-71




Post a reply
  Related Posts  to : C++ Constants
 Class Constants in php     -  

Topic Tags

C++ Variables