Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- struct datos_libro{
- char isbn[11];
- char titulo[30];
- char autor[30];
- char edicion[10];
- char editorial[25];
- char anio[5];
- };
- int main()
- {
- struct datos_libro libroB, *libroA;
- libroA = &libroB;
- printf("\nIngrese la informacion que se solicita: \n");
- printf("\nISBN [10]: ");
- gets(libroA->isbn);
- printf("\nTitulo: ");
- gets(libroA->titulo);
- printf("\nAutor: ");
- gets(libroA->autor);
- printf("\nEdicion: ");
- gets(libroA->edicion);
- printf("\nEditorial: ");
- gets(libroA->editorial);
- printf("\nAnio: ");
- gets(libroA->anio);
- printf("\n\n\nISBN: %s", libroA->isbn);
- printf("\nTitulo: %s", libroA->titulo);
- printf("\nAutor: %s", libroA->autor);
- printf("\nEdicion: %s", libroA->edicion);
- printf("\nEditorial: %s", libroA->editorial);
- printf("\nAnio: %s\n", libroA->anio);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement