关于指针数组不能引用,求助
#include<stdio.h>#include<stdlib.h>
#include<time.h>
#include<string.h>
typedef struct
{
char suit[10];
char face[10];
}change;
change card[52];
char *face[]={"1","2","3","4","5","6","7","8","9","10","jack","queen","king"};
char *suit[]={"spade","hearts","clubs","diamonds"};
void start(change card[],char face[],char suit[])
{
int a,b,c;
for(a=0;a<52;a++)
{
int a;
strcpy(card[a].face,face[a%13]);
strcpy(card[a].suit,suit[a/13]);
}
int main()
{
start(card,face,suit);
return 0;
}
我用c-free编译器的: 它出现以下的东西 --------------------配置: mingw5 - CUI Release, 编译器类型: MinGW--------------------
检查文件依赖性...
正在编译 C:\Users\Administrator\Desktop\发牌模拟.c...
[Warning] C:\Users\Administrator\Desktop\发牌模拟.c:20: warning: passing arg 2 of `strcpy' makes pointer from integer without a cast
[Warning] C:\Users\Administrator\Desktop\发牌模拟.c:21: warning: passing arg 2 of `strcpy' makes pointer from integer without a cast
[Error] C:\Users\Administrator\Desktop\发牌模拟.c:29: error: syntax error at end of input
构建中止 发牌模拟: 1 个错误, 2 个警告
求帮助