What is the difference between C ++ 14 and C ++ 5.1 in Ideone?

I can choose an option while I'm doing competitive programming. I have tried in most and most of the cases where I prefer C ++ 14. Does the other question in the answer or compilation pick?

+3


source to share


2 answers


C ++ 14 is an international language standard formally titled ISO / IEC 14882: 2014 (E). The nomenclature indicates that this is the version of the C ++ language published by ISO in 2014.

C ++ 5.1 doesn't exist . In the 1980s, there were versions of the pre-installed "C ++" created by Bjarne Stroustrup for fun, variously called C ++ 1.0 and C ++ 2.0. However, this version control system hadn't reached 5.1 by the time the language became standardized as ISO / IEC 14882: 1998 (E) in 1998.



You may be referring to the version number of some IDE (the piece of software for your computer that consists of a text editor and a compiler / debugger package). For example, you might be talking about version 5.1.0.0 of the IDE fork known as "Orwell Dev-C ++", which dates back to 2011 .

On the other hand, if these are the options presented to you as languages ​​in some online tool, that tool is wrong. For example, ideone.com suggests "C ++ 5.1", which appears to be GCC 5.1 in C ++ 98 mode .

+15


source


C ++ 14 is a version of the C ++ standard. The standard defines the types, syntax, semantics, etc., that all C ++ compilers should (try).



Dev-C ++ 5.1 is the IDE version that has many others. It uses GCC as a compiler under the hood. Depending on the version of GCC, it may support different iterations of the C ++ standard, which will affect the available library functions.

+2


source







All Articles