Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 29128

That auto keyword in C++ 11, not your Dad’s auto

$
0
0
Well that is if you Dad used  C++.  Unless he is using C++ 11, then it would be your Dad’s auto. If you write : auto intk; Returns an error because intk has not been initialized.  You can initialize the variable by doing the following: auto intk=787; Then the compiler knows that the variable type is an integer. This means that if you write the following: double doubleThingSensor(); //Or however you do the case thing, I give up on a standard Then you write: auto calcThingSensor = doubleThingSensor;...(read more)

Viewing all articles
Browse latest Browse all 29128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>