Generalidades y componentes básicos del lenguaje C++

Description

Generalidades y componentes Basicos de C++
Jose Alfaro
Mind Map by Jose Alfaro, updated more than 1 year ago
Jose Alfaro
Created by Jose Alfaro over 2 years ago
485
0

Resource summary

Generalidades y componentes básicos del lenguaje C++
  1. COMPONENTES BASICOS:
    1. TIPOS DE DATOS
      1. VARIABLES
        1. CONSTANTES
          1. FUNCIONES
            1. FUNCIONES: La funcion main() es un subprograma que puede o no devolver un valor o simplemente realizar un acción.
              1. operadores
                1. ARITMETICOS
                  1. RELACIONALES
                    1. LOGICOS
                  2. EXPRECIONES
                    1. A=(A+B)*(C/K)-D es importante saber que las expresiones en C++ se calculan de izquierda a derecha, los parentesis se evaluan primero teniendo en cuenta los mas internos.

                      Annotations:

                      • los paréntesis deben evaluarse primero, y deben evaluarse primero los mas internos, si hubiese, más de uno con la misma jerarquía se usará el mismo criterio que con los operadores.
                      1. ESTRUCTURAS DE CONTROL
                        1. if (expresión) Acción <- la estructura de control por decisión o selección más importante.
                          1. Estructura de control por decisión múltiples: if(a>b)else h=5, la palabra reservada: else significa lo contrario y permite escoger una acción a seguir de entre varias opciones
                            1. Sentencia switch: otra alternativa y util de seleccionar una acción entre varias opciones que depende del valor de una variable: "extender nota"

                              Annotations:

                              • switch(variable){ case 1: accion 1 break; case 2: accion 2 break; case 3: accion 3 break; case n accion n break; }
                          2. ESTRUCTURAS DE CONTROL POR ITERACIÓN
                            1. while "Ver nota"

                              Annotations:

                              • while (condicion) { instrucciones que se repite }
                              1. for "Ver nota"

                                Annotations:

                                • for(a=1; a&lt;= primo; a++) { &nbsp;&nbsp;&nbsp; residuo = primo/a; &nbsp;&nbsp;&nbsp; if (residuo * a==primo) &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contador++; &nbsp;&nbsp;&nbsp; } }
                                1. do "Ver nota"

                                  Annotations:

                                  • do{ &nbsp;&nbsp;&nbsp;&nbsp; sentencia que se repiten &nbsp;&nbsp;&nbsp;&nbsp; }while (exp)
                                  • la sentencia do while muchos programadores la definen como una sentencia que primero hace&nbsp; y despues piensa.
                  3. Para declarar una variable se debe especificar explicitamente su tipo de forma que el compilador dedusca el tipo de inicializador
              2. LEGUAJE TIPO COMPILADO "ver nota"

                Annotations:

                • Desde mi punto de vista el tipo de lenguaje compilado es mas confiable que el tipo de lenguaje interprete, porque una vez que se compila ya el lenguaje sabe que no hay errores en el código por lo tanto el código es veraz en cambio con el lenguaje interprete son interpretados cada vez que se ejecutan y necesitan siempre del interprete.
                1. PROGRAMADOR INTRODUCE LINEAS DE CODIGO
                  1. CODIGO FUENTE
                    1. COMPILADOR
                      1. CODIGO OBJETO
                        1. EJECUCION
                2. MULTIPARADIGMA
                  1. PROGRAMACION ESTRUCTURADA
                    1. PROGRAMACION ORIENTADA A OBJETOS
                      1. PROGRAMACION ORIENTADA A EVENTOS
                        1. PROGRAMACION GENERICA
                  2. USOS
                    1. APLICACIONES WEB
                      1. INTELIGENCIA DE NEGOCIOS
                        1. SISTEMAS DE INFORMACION GEOGRAFICA
                          1. ANALITICA DE DATOS
                            1. VIDEOJUEGOS
                              1. ENTRE OTROS
                    2. PARTICULARIDAD: PERMITE REDEFINIR LOS OPERADORES Y ASÍ PODER CREAR LOS TIPOS QUE SE COMPORTAN QUE SE COMPORTAN COMO TIPOS FUNDAMENTALES
                      Show full summary Hide full summary

                      Similar

                      Of Mice and Men
                      becky_e
                      CPA Exam Topics and breakdown
                      joemontin
                      GCSE Computing - 4 - Representation of data in computer systems
                      lilymate
                      OCR Gateway Biology Flash Cards
                      Sam Newey
                      USA and Vietnam (1964 - 1975) Part 2
                      Lewis Appleton-Jones
                      NeuroAnatomy
                      أطباء 2020
                      Geography AQA Revison topics Migration, Population Change, Youthful Populations and more
                      dburns8731
                      Business Studies - KEY TERMS
                      Dani Whitrick
                      Jane Eyre
                      sennahlee
                      Physics P2
                      Emmakatewilsonx
                      Treaty of Versailles
                      Krista Mitchell