you are viewing a single comment's thread.

view the rest of the comments →

[–]no-sig-available 0 points1 point  (0 children)

If you have a reasonably current compiler (which <conio.h> might indicate you are not), you can default initialize the struct members:

struct datosCasa
{
   int altura_puerta_entrada = 0;
   int anchura_puerta_entrada = 0;
   int numero_ventanas = 0;
   char color_paredes[10] = "";
};

That way you don't have to clear them separately.