64位有符號與無符號類型的整數


 

原文鏈接: http://blog.csdn.net/lmyclever/article/details/6744906

 

  • 有符號型64位整數,值域為:-9223372036854775808 .. 9223372036854775807。

    語言 GNU C/C++ Pascal Visual C/C++
    類型名稱 __int64
    or
    long long
    int64 __int64
    輸入方法 scanf("%I64d", &x);
    or
    cin >> x;
    read(x); scanf("%I64d", &x);
    輸出方法 printf("%I64d", x);

    cout << x;
    write(x); printf("%I64d", x);
  • 無符號型64位整數,值域為:0 .. 18446744073709551615。

    語言 GNU C/C++ Pascal Visual C/C++
    類型名稱 unsigned __int64
    or
    unsigned long long
    qword unsigned __int64
    輸入方法 scanf("%I64u", &x);
    or
    cin >> x;
    read(x); scanf("%I64u", &x);
    輸出方法 printf("%I64u", x);
    or
    cout << x;
    write(x); printf("%I64u", x);
 
 
 
 
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM