#include <stdio.h>
#include <string.h>
typedef struct Books
{
char title[50];
char author[50];
char subject[100];
int book_id;
} Book,*x;
int main( )
{
Book book;
Book *xx;
strcpy( book.title, "C Programming");
strcpy( book.author, "Nuha Ali");
strcpy( book.subject, "C Programming Tutorial");
book.book_id = 6495407;
printf("\n");
x a;
a=&book;
strcpy(a->author,"人人人");
// xx=&book;
// strcpy( xx->title, "字符串");
// x=&book;
//strcpy(x->author,"天高地");
//Bood xx;
// scanf("%s",xx.title);
// printf("%s",xx->book_id);
printf( "Book title : %s\n", book.title);
printf( "Book author : %s\n", book.author);
printf( "Book subject : %s\n", book.subject);
printf( "Book book_id : %d\n", book.book_id);
return 0;
}
#include <string.h>
typedef struct Books
{
char title[50];
char author[50];
char subject[100];
int book_id;
} Book,*x;
int main( )
{
Book book;
Book *xx;
strcpy( book.title, "C Programming");
strcpy( book.author, "Nuha Ali");
strcpy( book.subject, "C Programming Tutorial");
book.book_id = 6495407;
printf("\n");
x a;
a=&book;
strcpy(a->author,"人人人");
// xx=&book;
// strcpy( xx->title, "字符串");
// x=&book;
//strcpy(x->author,"天高地");
//Bood xx;
// scanf("%s",xx.title);
// printf("%s",xx->book_id);
printf( "Book title : %s\n", book.title);
printf( "Book author : %s\n", book.author);
printf( "Book subject : %s\n", book.subject);
printf( "Book book_id : %d\n", book.book_id);
return 0;
}