#include<stdio.h>
void main(void)
{
enum FONT{JT,FT,EG} ;
enum SIO{MO,OO,PO} ;
struct setcanshu_ini
{
char fname[9];
char custid[5];
char itemcode[18] ;
long quaty1;
long quaty;
int b2s[9];
int ptc[4][9];
enum COLORS cortab[20];
enum FONT ziti;
enum SIO zero[4];
}setint;
setint={{"006"},{"012"},{"01235"},10000,1,{1,2,3,4,5,6,7,8,9},{{10,3600,2500,5580,0,0,0,0,0},
{3,220,2500,5580,0,0,0,0,0},{8,3600,4000,2000,0,0,0,0,0},{5,3600,2500,2000,0,0,0,0,0}},
{12,12,12,10,10,10,10,2,2,2,3,3,3,4,4,4,10,14,14,14},JT,{OO,OO,OO,OO}};
}
编译时不能通过,结构体初始化时不知错在哪里?
编译提示错显示为:
Expression syntax in function main
[此贴子已经被作者于2006-7-17 11:03:00编辑过]