用结构体变量的指针做函数的参数

#include
#include
#include
#include

struct Student
{
int num;
char name[20];
float score[3];
float aver;
};

void main()
{
struct Student *p;
struct Student stu[10];
p = stu;
void input(struct Student *p,int n);
int n;
scanf("%d",&n);
input(p,n);

system("pause");

}

void input(struct Student *p,int n)
{
for(int i = 0;i < n;i++)
{

    接下来怎么写,我想从input 函数中 用指针输入数据
}

}

void input(struct Student *p,int n)
{
for(int i = 0;i < n;i++)
{
//接下来怎么写,我想从input 函数中 用指针输入数据
p[i].num = 1;
strcpy_s(p[i].name, "abc");
p[i].score[0] = 2;
p[i].score[1] = 3;
p[i].score[2] = 4;

    p[i].aver = 3;
}

}
上面看错,是个结构体数组

void input(struct Student *p,int n)
{
for(int i = 0;i < n;i++)
{
//接下来怎么写,我想从input 函数中 用指针输入数据
p->num = 1;
strcpy_s(p->name, "abc");
p->score[0] = 2;
p->score[1] = 3;
p->score[2] = 4;

    p->aver = 3;
}

}
赋值??