请帮我看一看啊
#include<stdio.h>struct time{
float arriveTime;
float runTime;
float totalTime;
char name[];
};
void InputTime(struct time *ps)
{ps->name[]='aaaaaaa';//这条语句显示错信息:Expression syntax in function inputTime
ps->runtime=10;
printf("%s\n",ps->name);
getch();
scanf("%",&ps->runTime);
getch();
};
main(){
struct time a[6];
stuct time *ps;
void InputTime(struct time *ps);
InputTime(a);
};
请指点啊