Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <climits>
- #include <iomanip>
- #include <iostream>
- using namespace std;
- int main() {
- /*
- cout << "Types : cout-memoire (en octets) et domaine de variation" << endl;
- cout << "Bool : " << sizeof(bool) << " - false .. true" << endl;
- cout << "char : " << sizeof(char) << " - Domaine : " << CHAR_MIN << " .. " << CHAR_MAX << endl;
- cout << "unsigned char : " << sizeof(unsigned char) << " - Domaine : 0 .. " << UCHAR_MAX << endl;
- cout << "wchar_t : " << sizeof(wchar_t) << endl;
- cout << "short : " << sizeof(short) << " - Domaine : " << SHRT_MIN << " .. " << SHRT_MAX << endl;
- cout << "unsigned short : " << sizeof(unsigned short) << " - Domaine : 0 .. " << USHRT_MAX << endl;
- cout << "int : " << sizeof(int) << " - Domaine : " << INT_MIN << " .. " << INT_MAX << endl;
- cout << "unsigned int : " << sizeof(unsigned int) << " - Domaine : 0 .. " << UINT_MAX << endl;
- cout << "long : " << sizeof(long) << " - Domaine : " << LONG_MIN << " .. " << LONG_MAX << endl;
- cout << "unsigned long : " << sizeof(unsigned long) << " - Domaine : 0 .. " << ULONG_MAX << endl;
- cout << "float : " << sizeof(float) << endl;
- cout << "double : " << sizeof(double) << endl;
- */
- unsigned int i = 0, n=0;
- int t[156];
- while (n > 0) {
- t[i] = n % 10;
- i += 1;
- n /= 10;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement