【发布时间】:2012-02-29 05:15:35
【问题描述】:
我写了以下程序:
typedef struct blahblah {
int x;
int y;
} Coordinate;
int main () {
Coordinate p1;
p1.x = 1;
p1.y = 2;
//blah blah has not been declared as a struct, so why is it letting me do this?
struct blahblah p2;
p2.x = 5;
p2.y = 6;
}
谁能给我解释一下这是怎么回事?
【问题讨论】:
-
我不太明白。
struct blahblah当然 已 被声明为结构,它就在您示例的顶部。
标签: c compiler-construction struct