I am trying to learn how to use implicitly typed variables in c++.
Should i be using 'auto' from C++0x? If so how?
Can some one provide me with a simple example or a good tutorial on this?
Thank you.
I am trying to learn how to use implicitly typed variables in c++.
Should i be using 'auto' from C++0x? If so how?
Can some one provide me with a simple example or a good tutorial on this?
Thank you.
Check out this explanation from Bjarne Stroustrup himself: auto -- deduction of a type from an initializer.