Ali alshehri c++_comparison between c++&python
C++ development began in 1979, four years before its release,
and it did not start with the name C++; Its first name was C with
In the late part of 1983, C withClasses was first usedfor
AT&T's internal programming needs.2
Its name was changed toC++ later inthe same
year, C++ was not releasedcommercially until the
late part of 1985.3
C++ implements dataabstractionusing aconcept called
classes, along withother features toallow object-oriented
programming and is consideredahigh-level language4
Python is an interpreted, high-level, general-purpose
programming language. Created by Guido van Rossum and first
released in 1991
Python features adynamic type systemandautomatic
It supports multiple programming paradigms, including
object-oriented, imperative, functional andprocedural.
It alsohas a comprehensive standardlibrary.3
Python has a designphilosophy that emphasizes code readability,
notably using significant whitespace. It provides constructs that
enable clear programming onboth small and large scales.4
A wide range of
from simple GUI
applications to vivid
3D games and real-
Highly portable, a top
choice for multi-device,
leveraging classes, data
Efficient, fast, and
Rich function library
Used for prototyping
and testing code that
is later to be
with high readability
Python programs are easy
to modify for supporting
support and rapid
Uses of c++
➢ C++ is used by programmers to create computersoftware. It is used to create general systems
software, drivers for various computerdevices, software for servers and software for specific
applicationsand also widely used in the creation of video games.
➢ C++ is used by many programmers of different types and coming from different fields. C++ is
mostly used to write device driver programs, system software, and applicationsthat depend on
direct hardware manipulationunderreal-time constraints.
➢ It is used to teach the basics of object-orientedfeatures because it is simple
➢ it is used in the fields of research. Also, many primary user interfaces and system files of
Windows and Macintosh are written using C++.
Uses of python
➢ Python is object-orientedStructuresupportssuch conceptsas polymorphism, operation
overloading, and multipleinheritance.
➢ It's free (open source) Downloadingand installing Python is free and easy Source code is easily
➢ It's powerful - Dynamic typing - Built-in types and tools- Library utilities - Third party -
Automatic memory management
➢ It's portable - Python runs virtually every major platformused today - As long as you have a
compatiblePython interpreterinstalled, Python programs will run in exactly the same manner,
irrespective of platform
Low-level systems programming.
Available everywhere and reasonably well
The compile/debug/nap development cycle.
Difficulty of extending and modifying.
Writing graphical uer-interfaces (worse).
High level programming.
Systems integration (gluing components
A lot of good quality libraries and tools
Syntax is very easy to read and learn
Free dev environment and tools (as starter)
no browser support (js monopoly)
weak support for mobile
execution is slow compared to compiled code
dynamic typing, running errors
class defs, self, parent constructor
modules path are dynamic syspath.append is
C++ vs python
➢ Python code runs on all operating systems with Python installed on the same.
➢ This isn’t, however, the case with C++, which necessitates being recompiledevery time
the code is to be run on a machine with a different operating system.
➢ Unlike C++, a variable can be useddirectly without the need of its declaration in Python
➢ C++ uses pointers to a great extent and doesn’t offer garbage collection. Hence, it is
prone to a memory leak. For efficient memory management
C++ vs python
➢ Python comes with a built-in dynamic memory allocation and garbage collection features.
➢ While Python is a high-level language, C++ is an intermediate-level programming language.
➢ C++ requires a declaration of a datatype before using it. In addition to lessening the ambiguity of the
code, this easies error handling. The downside of this is that the code becomes extensive.
➢ Python drops the need of mentioning the type of data before using it, hence the code becomes
shorter. Consequently, error handling becomes difficult.
➢ C++ supports OOPS functionalities, including classes, operator overloading, and virtual functions.
Parece que tem um bloqueador de anúncios ativo. Ao listar o SlideShare no seu bloqueador de anúncios, está a apoiar a nossa comunidade de criadores de conteúdo.
Atualizámos a nossa política de privacidade.
Atualizámos a nossa política de privacidade de modo a estarmos em conformidade com os regulamentos de privacidade em constante mutação a nível mundial e para lhe fornecer uma visão sobre as formas limitadas de utilização dos seus dados.
Pode ler os detalhes abaixo. Ao aceitar, está a concordar com a política de privacidade atualizada.