【发布时间】:2014-01-19 18:11:27
【问题描述】:
是否可以将具有相同名称的变量声明到不同的结构中? 例如:
struct first
{
int a;
int b;
int the_same;
};
struct second
{
int x;
int y;
int the_same
};
【问题讨论】:
-
与其在这里问是否可能,不如编译代码并自己看看?
-
我已经做过了,效果很好,但是我想请教一下,我想知道是否建议这种方法。
标签: c variables struct naming-conventions variable-names