如何在C中定义和初始化结构内的字符串数组?

时间:2014-10-06 20:05:00

标签: c arrays string structure

这是我的代码:

typedef struct mobiltelefon {

char herstellername[HLEN];
double displaydiagonale;
aufloesung_t aufloesung;

char standards[NUMBER_OF_STRINGS][STRINGLENGTH+1] = {"GPRS", "EDGE", "HSDPA", "HSUPA","HSPA","LTE"};

}handy_t;

我一直收到这个错误:

expected ; at the end of declaration list

0 个答案:

没有答案