【C++】数据结构 struct,结构体相关操作_struct book{ int id; char title[50]; char author[2-CSDN博客

网站介绍:文章浏览阅读388次。代码:#include <iostream>#include <cstring>using namespace std;struct Book{ char title[50]; char author[50]; double price; int bookId;};void printBook(struct Book bo..._struct book{ int id; char title[50]; char author[20]; double price; }; 下面