C语言struct的使用

struct SIMPLE{

int a;

int b;

float c;

};

struct SIMPLE x;

struct SIMPLE y[20.*c

另一种简单的方式:

typedef struct{

   int a;

   int b;

   float c;

}Simple;

Simple x;

Simple y[20,*x;]

posted @ 2009-12-22 22:33  macula7  阅读(99)  评论(0编辑  收藏  举报