作者BlueFeel (蓝色感觉)
看板ASM
标题[问题] 阵列问题
时间Sun Mar 22 18:14:26 2009
/* Define Variable */
#define a 0x0000
#define c 0x0001
#define c 0x0002
void Main(void)
{
Hardware_Iinitialize();
Hello(a,b,c);
}
void Hello(a_Value,b_Value,c_Value)
{
unsigned char index;
unsigned short Reg[] = {a_Value , b_Value , c_Value};
for (index = 0; index < 15 ; index++)
{
.........
}
}
===================================
为什麽软体告诉我.....
MAIN.C(70): error C247: non-address/-constant initializer
why??
怎麽写才对呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.195.194.110
1F:推 wuzen:unsigened short a_Value........ 03/22 21:14