struct A
{
char *name;
char *unit;
};
struct A'
{
char name[10];
char unit[10];
};
A 与A'的区别?
A'的好处,可以使用memcpy.
struct A b,c;
c.name = "name";
c.unit = "unit"
struct A
{
char *name;
char *unit;
};
struct A'
{
char name[10];
char unit[10];
};
A 与A'的区别?
A'的好处,可以使用memcpy.
struct A b,c;
c.name = "name";
c.unit = "unit"