SlideShare una empresa de Scribd logo
1 de 20
Brenda Lizbeth Zuñiga Gomez
Grupo:304
Programacion
:
Bytes
short 1
Int 2
Double Flotante doble precisión(8)
Long 4
Char 1
Boolean True/false 0/1 si/no
float Flotante (4)
1 bit 1 digito binario
1 byte 8 bits
1 kilobyte 1024 byte
1 megabyte 1024 KB
1 gigabyte 1024 MB
1 terabyte 1024 GB
1 petabyte 1024TB
• Suma -> +
• Resta -> -
• Multiplicación -> *
• División -> /
• Residuo -> %
• Menor -> >
• Mayor -> <
• Menor igual-> >=
• Mayor igual-> <=
• Diferencia-> <>
• Igual igual -> ==
Comparación
Operadores lógicos
Andd &&
Or II
Not !
i++ i=i+1
i-- i=i-1;
i+=4 i=i+4;
i*=5 i=i*5;
i-=5 i=i-5;
i/=2 i=i/2;
Variables
Int a; Declaración
Int a=5 Declaración y asignación
a=5 Asignación de valor
If
If (condicion){
Instrucciones
}
Estructuras de control
condic
ion
instrucciones
If(condicion)
{
Instrucción
} else
{
Instrucción
}
If else
condi
cion
instruccion
instruccion
1.-
If(condicion)
{
Instrucción
} else if(condicion)
{
Instrucciones
}else
{
Instrucciones
}
If anidado
condi
cion
instruccion
condi
cion
instruccion instruccion
2.-
condi
cion
condi
cion
instruccion
instruccion
instruccion
Switch(variable){
Case 1:
Instrucciones
Break;
Case 2:
Instrucciones
Break;
Case n:
Instrucciones
Break;
Default:
Instrucciones
Break;
}
Switch
varia
ble
instruccion instruccioninstruccionInstrucción instruccion
While (condicion){
Instrucciones
}
WHILE
instruccion
condi
cion
Do{
Instrucción
} while (condicion);
Do while
instruccion
condi
cion
Int array [n]
Int array [3] [3]
Arreglo
0,0, 0,1 0,2
1,0 1,1 1,2
2,0 2,1 2,2
Un cout sirve para dar entrada a un dato
Cin sirve para imprimir el dato ingresado
Cout / cin
Gracias por su atención

Más contenido relacionado

Destacado

Ecommerce Solution BuildaBazaar Infibeam
Ecommerce Solution BuildaBazaar InfibeamEcommerce Solution BuildaBazaar Infibeam
Ecommerce Solution BuildaBazaar Infibeam
Kush Tyagi
 

Destacado (10)

17 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Hoe goed is mijn kansverwachting ...
17 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Hoe goed is mijn kansverwachting ...17 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Hoe goed is mijn kansverwachting ...
17 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Hoe goed is mijn kansverwachting ...
 
16 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Jeroen Ligtenberg, RWS-WVL & Edwi...
16 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Jeroen Ligtenberg, RWS-WVL & Edwi...16 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Jeroen Ligtenberg, RWS-WVL & Edwi...
16 DSD-NL 2016 - Delft-FEWS Gebruikersdag - Jeroen Ligtenberg, RWS-WVL & Edwi...
 
Ecommerce Solution BuildaBazaar Infibeam
Ecommerce Solution BuildaBazaar InfibeamEcommerce Solution BuildaBazaar Infibeam
Ecommerce Solution BuildaBazaar Infibeam
 
2 identificação e interpretação dos riscos ocupacionais 2
2    identificação e interpretação dos riscos ocupacionais   22    identificação e interpretação dos riscos ocupacionais   2
2 identificação e interpretação dos riscos ocupacionais 2
 
BeeCon 2016 Alfresco Engineering lightning talk
BeeCon 2016 Alfresco Engineering lightning talkBeeCon 2016 Alfresco Engineering lightning talk
BeeCon 2016 Alfresco Engineering lightning talk
 
Acidente hospitalar - Enfermagem
Acidente hospitalar -  EnfermagemAcidente hospitalar -  Enfermagem
Acidente hospitalar - Enfermagem
 
DESARROLLO SOCIAL EN LA PRIMERA INFANCIA
DESARROLLO SOCIAL EN LA PRIMERA INFANCIADESARROLLO SOCIAL EN LA PRIMERA INFANCIA
DESARROLLO SOCIAL EN LA PRIMERA INFANCIA
 
Primera infancia desarrollo social
Primera infancia desarrollo socialPrimera infancia desarrollo social
Primera infancia desarrollo social
 
Kirtika_Resume
Kirtika_ResumeKirtika_Resume
Kirtika_Resume
 
Plan de protección las seis jugadas maestras
Plan de protección las seis jugadas maestras Plan de protección las seis jugadas maestras
Plan de protección las seis jugadas maestras
 

Programacion power C++