/*********************************************************** Copyright 2003 Rick Miller - Pulp Free Press This source code accompanies the text C++ For Artists and is provided for instructional purposes only. No warranty concerning the quality of the code is expressed or implied. You are free to use this code in your programs so long as this copyright notice is included in its entirety. **********************************************************/ /**************************************************** Value Ranges - type sizes ****************************************************/ #include #include using namespace std; //introduces namespace std int main() { bool b; numeric_limits _b; cout<<"bool: "< _sc; cout<<"signed char: "< _uc; cout<<"unsigned char: "< _c; cout<<"char: "< _wc; cout<<"wchat_t: "< _ssi; cout<<"signed short int: "< _usi; cout<<"unsigned short int: "< _si; cout<<"short int: "< _sii; cout<<"signed int: "< _ui; cout<<"unsigned int: "< _i; cout<<"int: "< _sli; cout<<"signed long int: "< _uli; cout<<"unsigned long int: "< _li; cout<<"long int: "< _slli; cout<<"signed long long int: "< _ulli; cout<<"unsigned long long int: "< _lli; cout<<"long long int: "< _f; cout<<"float: "< _d; cout<<"double: "< _ld; cout<<"long double: "<