Pagini recente » Diferente pentru blog/cpp11 intre reviziile 26 si 25 | Diferente pentru blog/cubrid-bug-bash intre reviziile 7 si 6 | Diferente pentru blog/cpp11 intre reviziile 33 si 32 | acm_test | Diferente pentru blog/cpp11 intre reviziile 13 si 12
Diferente pentru
blog/cpp11 intre reviziile
#13 si
#12
Nu exista diferente intre titluri.
Diferente intre continut:
$C++$ users can now use a bunch of cool features, some of which are described below briefly. Keep in mind that these features are *not* yet available at OJI, ONI, etc., so don't use them at any of these competitions unless they are allowed explicitly by the regulations.
h3. 1. auto
h3. auto
You can now let the compiler guess the type of some variable:
$auto$ can also be used with $const auto$ or $const auto&$. It works in the same way other types would work. In most cases, $auto$ cannot be used in function signatures.
h3. 2. range-based for loops
h3. range-based for loops
In $C++11$, you can iterate over each element in a list with less code:
== code(cpp) |
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.