Citar
struct lconsumoactual{
char rango[30]="0-130"; //LINEA DE ERROR
int consumokwh;
double valorkwh;
double totalenergia;
float subisidio;
double total;
};
char rango[30]="0-130"; //LINEA DE ERROR
int consumokwh;
double valorkwh;
double totalenergia;
float subisidio;
double total;
};
Error:
Citar
invalid in-class initialization of static data member of non-integral type 'char [30]'
Compilador -> Dev C++ v7 (creo)
Saludos ! gracias de antemano!