O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Ali alshehri c++_comparison between c++&python

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
Python vs c++ ppt
Python vs c++ ppt
Carregando em…3
×

Confira estes a seguir

1 de 12 Anúncio
Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a Ali alshehri c++_comparison between c++&python (20)

Anúncio

Mais recentes (20)

Ali alshehri c++_comparison between c++&python

  1. 1. About c++ facts 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 classes. 1 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
  2. 2. About c++ facts Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991 1 Python features adynamic type systemandautomatic memory management.2 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
  3. 3. STEP 01 A wide range of applications, varying from simple GUI applications to vivid 3D games and real- time mathematical simulations 02 STEP Highly portable, a top choice for multi-device, multi-platform development STEP 03 Object-oriented programming language leveraging classes, data abstraction and encapsulation, inheritance, and polymorphism 04 STEP Efficient, fast, and powerful Rich function library C++ Highlights
  4. 4. STEP 01 Used for prototyping and testing code that is later to be implemented using other programming languages 02 STEP High-level language with high readability and reliability STEP 03 Python programs are easy to modify for supporting different database engines 04 STEP Active community support and rapid development python Highlights
  5. 5. 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++.
  6. 6. 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 accessible ➢ 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
  7. 7. High performance. Low-level systems programming. Available everywhere and reasonably well standardized The compile/debug/nap development cycle. Difficulty of extending and modifying. Non-interactive. Writing user-interfaces Writing graphical uer-interfaces (worse). High level programming. Systems integration (gluing components together) C++ Programming The bad
  8. 8. A lot of good quality libraries and tools Internet 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 private/protected modules path are dynamic syspath.append is to popular C++ Programming The bad
  9. 9. 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 code. ➢ 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
  10. 10. 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. Python doesn’t.

×