#include <iostream> #include <string.h> struct book { char name[]; int price; char act; } int main { struct book b1={ "C语言程序” , 55, zhangjp}; struct book* pb=&b1; //the result equal in value “pb->name,pb->price etc" printf("书名叫: %s\n",b1.name); printf("价格是: %d\n",b1.price); printf("书的作者是: %s\n",b1.act); b1.price=65; printf("新的价格是:%s\n“,b1.price); strcpy(b1.name,c语言学习笔记); printf("新改的书名为: %s\n", b1.price); return 0; }