那里错了,同志们看一下

#include<stdio.h>

struct student{
char name[10];
int age;
};
int main()
{
int i,j;
struct student stu[3]={
{"wang",18},
{"xiao",20},
{"cho",15}
};

struct g;
for(i=0;i<2;i++)
{
for(j=0;j<1;j++){
if(stu[j].age>stu[j+1].age)
{g=stu[j].age;
stu[j].age=stu[j+1];
stu[j+1].age=g;}
}
}
for(i=0;i<3;i++){
printf("%s %d\n",stu[i].name,stu[i].age);
}
return 0;
}

这几句有问题,g是struct怎么把age赋给它?
g = stu[j].age;
stu[j].age = stu[j + 1];
stu[j + 1].age = g;