+ 1
What is the significance of c++, even compared to innumerable other computer languages, why is it so widely used and if new programming languages are created, why are the older ones used (like c++98)
9 Réponses
+ 2
C++ in general is a widely used programming language, not only because it has been the IT industries favorite for many years and it's living on that legacy, but it still fulfills a relevant purpose: writing important (read: complex) software artifacts that need to be performant.
You should use newer C++ standards as C++98 is obsolete, which means there are better ways to create software using C++. Newer standards as C++03 (also obsolete), C++11, 14 and soon 17 add means to facilitate writing cleaner, more flexible code that runs faster.
Therefore, C++ nowadays fulfills it's purpose better than it ever did before. The only question is: Do you need both in your software artifact - performance *and* cutting down complexity? Otherwise a more accessible language might do the job.
+ 2
Windows is written in c/c++.
+ 1
@Vladislav: That's one of the causes for its performance.
+ 1
@Stefan do you mean C++1z?
+ 1
C++ is a statically typed, free-form, , compiled, general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.The differences between these languages has nothing to do with their difficulty. Many programming problems can be solved using any of these languages. The major differences are more in their technical details. There are slight differences in their syntax and feature sets. For example, C & C++ both provide explicit pointer and memory access, Java and Python essentially provide reference types which are safer in that you are prevented from using explicit pointer arithmetic. However, the biggest difference between these languages is their runtime and how they are compiled. C and C++ are compiled to native executables. Python is interpreted at runtime and hence isn't compiled until runtime (although Python does cache compiled copies in *.pyc files). Java is between these two. Java compiles to JVM bytecode and the Java Virtual Machine compiles the bytecode at runtime. There are other differences, like syntax, between these languages but how they operate internally with their compilers is probably their biggest difference.I will also say that, as a result of how these languages are compiled, there are differences in their runtime speed. C & C++ execute much faster than Python or Java, because they are compiled to machine readable executables directly. Java is also faster than Python, because it has been compiled to an intermediary form that is optimized and then runs on a JIT compiler that further optimizes the bytecode. Python is probable the slowest in execution, because it has to be compiled from source to machine code on the fly as the program executes. The tradeoff between these is that a programmer can typically write a Python program faster than they can write a Java program and faster than they can write a C++ program.So, iSo, in terms of developer time Python is faster but C++ is slower from my guess.
0
Also C++ gives you a very good low level control of your machine with the memory management(controling stack, heap) and nice pointer techniques.
0
Toatally agree
0
Jop, C++1z is supposed to be C++17. And as it seems, the standard committee is still on track.
0
The reason the c++ is so fast is because the time when it was written the storages were very big and each bit was very important.hence it was written keeping in mind every bit.