Atenţie! Aceasta este o versiune veche a paginii, scrisă la 2013-04-27 09:39:35.
Revizia anterioară   Revizia următoare  

--std=c++0x compiler option

pauldb
Paul-Dan Baltescu
27 aprilie 2013

We now have the --std=c++0x compiler option enabled on infoarena. We also updated our g++ compiler to version 4.8.

What does it mean?

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 only use them at home.

auto

You can now let the compiler guess the type of some variable:

auto a = 45;
auto b = 4.5;
auto c = vector<int>(10);
Categorii: Features