In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you what the use of auto in C++ is, the content is simple and clear, and I hope it can help you solve your doubts. Let the editor take you to study and learn this article "what is the use of auto in C++?"
1.auto introduction
In the early days, the meaning of auto in Cauto + was to use a variable modified by auto, and auto was a local variable with automatic memory.
The standards committee of auto 11 gives a new meaning to auto: auto is no longer a storage type indicator, but as a new type indicator to instruct the compiler, the variables declared by auto must be derived by the compiler at compile time.
You can use typeid (). Name to print the type of object.
Case study:
Int TestAuto () {return 2;} int main () {int a = 10; auto b = a; auto c = 'a'; auto d = TestAuto (); 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.