I’m new to C++ and i have a case where vb.nets Dim or C#s var would help me greatly.
i googled around and i found no questions for this? (although search terms with var or dim and C++ seemed to stray easy)
is there an equivalent for this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not in the current standard.
However, the new version that is probably due this year (most likely called C++11, but it’s also still often referred to as C++0x) has
autothat does that same thing asvar.It’s already supported by recent versions of all big compilers.
For example: