In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the data types of C++, the article is very detailed, has a certain reference value, interested friends must read it!
Data type
C++ stipulates that when creating a variable or constant, you must specify the appropriate data type, otherwise you cannot allocate memory space to the variable.
Integer: data type occupies space range short (short integer) 2 bytes-2 ^ 15 ~ 2 ^ 15-1int (integer) 4 bytes-2 ^ 31 ~ 2 ^ 31-1long (long integer) 4 bytes / 8 bytes-2 ^ 31 ~ 2 ^ 31-1long long (long integer) 8 bytes-2 ^ 63 ~ 2 ^ 63-1#includeusing namespace std;int main1 () {/ / integer / / 1. Short integer short num1 = 10; / / short num1 = 32768; / / 2. Integer int num2 = 10; / / 3. Long integer long num3 = 10; / / 4. Long integer long long num4 = 10; cout
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.