Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.981 Beiträge
 
#1

Top 5 C++ language features #5 - auto

  Alt 12. Nov 2012, 21:20
auto is a new keyword in C++11 that provides automatic type inference when declaring a variable and assigning a value. Rather than having to know beforehand and specify the variable type, a C++11 developer can use auto to figure out the type for him, for example: //infers an integer auto i = 5; ...

More...
  Mit Zitat antworten Zitat