#include<stdio.h>
struct{
int id;
char *author;
}book;
struct book1{
int id;
char *author;
}b1;
typedef struct book2{
int id;
char *author;
}book2,*btr;
typedef struct {
int id;
char *author;
}book3;
int main()
{
book.author = "sd";
book.id = 1;
b1.id = 1;
b1.author = "zhang";
struct book1 b2;
b2.id = 1;
b2.author = "zas";
book2 b3;
btr point = &(b3);
b3.id = 1;
b3.author = "ds";
book3 b4;
b4.id = 1;
b4.author = "sds";
return 0;
}
struct的几种表示方法
最新推荐文章于 2024-08-06 04:00:00 发布