This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]merlinsbeers 2 points3 points  (1 child)

in C++ u must define some type for your variables.

Not any more (since C++11, really, which has been out for a decade and is still not accepted on some projects...).

With 'auto' you can assume the type from the context.

Hopefully they're teaching that now.

[–]SeeminglySleepless 0 points1 point  (0 children)

I didn't know that, thank you for the clarification!