Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. #include <climits>
  2. #include <iomanip>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main() {
  7. /*
  8. cout << "Types : cout-memoire (en octets) et domaine de variation" << endl;
  9. cout << "Bool : " << sizeof(bool) << " - false .. true" << endl;
  10. cout << "char : " << sizeof(char) << " - Domaine : " << CHAR_MIN << " .. " << CHAR_MAX << endl;
  11. cout << "unsigned char : " << sizeof(unsigned char) << " - Domaine : 0 .. " << UCHAR_MAX << endl;
  12. cout << "wchar_t : " << sizeof(wchar_t) << endl;
  13. cout << "short : " << sizeof(short) << " - Domaine : " << SHRT_MIN << " .. " << SHRT_MAX << endl;
  14. cout << "unsigned short : " << sizeof(unsigned short) << " - Domaine : 0 .. " << USHRT_MAX << endl;
  15. cout << "int : " << sizeof(int) << " - Domaine : " << INT_MIN << " .. " << INT_MAX << endl;
  16. cout << "unsigned int : " << sizeof(unsigned int) << " - Domaine : 0 .. " << UINT_MAX << endl;
  17. cout << "long : " << sizeof(long) << " - Domaine : " << LONG_MIN << " .. " << LONG_MAX << endl;
  18. cout << "unsigned long : " << sizeof(unsigned long) << " - Domaine : 0 .. " << ULONG_MAX << endl;
  19. cout << "float : " << sizeof(float) << endl;
  20. cout << "double : " << sizeof(double) << endl;
  21. */
  22. unsigned int i = 0, n=0;
  23. int t[156];
  24. while (n > 0) {
  25. t[i] = n % 10;
  26. i += 1;
  27. n /= 10;
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement