10.01.2015 Views

matrices, estructuras

matrices, estructuras

matrices, estructuras

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Estructuras (12)<br />

#include <br />

struct datos{<br />

char nombre[30];<br />

char direccion[30];<br />

int n_empleado,edad;<br />

float sueldo;<br />

}<br />

void mostrar(struct datos A){<br />

printf(“\n Número de empleado: %d”, A.n_empleado);<br />

printf(“\n nombre: %s”, A.nombre);<br />

printf(“\n edad: %d”, A.edad);<br />

printf(“\n dirección: %s”, A.direccion);<br />

printf(“\n sueldo: %f”, A.sueldo);<br />

}<br />

}<br />

void main(){<br />

struct datos persona;<br />

...<br />

mostrar(persona);<br />

…<br />

}<br />

31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!