Correciones a este codigo para mejorarlo
Publicado por Luis (2 intervenciones) el 16/12/2019 05:12:58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <string.h>
#include <iostream.h>
void main(){
char telefono;
int a;
struct telefono{
signed int bateria[1];
int Tarjeta_sim[2];
float Ramn[2];
char puertos [2];
};
cout << "Componentes del telefono" << /n;
cin >> a;
if (a => 1){
cout << "Componentes: " << /n;
cout << "Bateria" << bateria[1] << /n;
cout << "Ramns: " << "{" << Tarjeta_sim[1] << Tarjeta_sim[2] << /n;
cout << "Puertos: " << "{" << puertos[1] << puertos[2];
}
}
float Ramn_size1 = 1.5;
float Ramn_size2 = 2.5;
char Puerto_sup = Mini Plu;
char Puerto_inf = USB type 3;
&bateria[1] = 100%;
&Tarjeta_sim[1] = true;
&Tarjeta_sim[2] = false;
&Ramn[1] = Ramn_size1;
&Ramn[2] = Ramn_size2
&puerto[1] = Puerto_sup;
&puerto[2] = Puerto_inf;
Valora esta pregunta
0