C + + Poco library Chinese Programming Reference Guide (2) basic data type (POCO/TYPES.H)

Source: Internet
Author: User

The base type is in the Poco/types.h header file. The following is an example of GNU/C + + and clang. However, the emphasis is that POCO has excellent cross-platform, you can think of the platform, almost all can run POCO.

1 Signed Integral type

typedef signed Char Int8;

typedef signed short Int16;

typedef signed INT Int32;

2 unsigned integral type

typedef unsigned char UInt8;

typedef unsigned short UInt16;

typedef unsigned int UInt32;

3 pointer or Handler

typedef signed Long INTPTR;

typedef unsigned long uintptr;

4 64-bit integral type

Considering 32-bit machines and 64-bit machines.

#if defined (__lp64__)   
    #define POCO_PTR_IS_64_BIT 1   
    #define POCO_LONG_IS_64_BIT 1   
    typedef signed LONG        Int64;   
    typedef unsigned long      UInt64;   
#else   
    typedef signed Long Long   Int64;   
    typedef unsigned long long UInt64;   
#endif   
#define POCO_HAVE_INT64 1

-

CSDN blog from Liuda: blog.csdn.net/poechant

View a full set of articles: Http://www.bianceng.cn/Programming/cplus/201301/35022.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.