#include<iostream>
using namespace std;
struct Student{
int id;
Student *next;
}*p,*head;
void greate(){
head=new Student;
head=NULL;
p=head;
cout<<"please enter student number:";
int n;
cin>>n;
for(int i=0;i<n;i++){
p=new Student;
p->id=i;
p->next=head; //此方法开始是 p->
using namespace std;
struct Student{
int id;
Student *next;
}*p,*head;
void greate(){
head=new Student;
head=NULL;
p=head;
cout<<"please enter student number:";
int n;
cin>>n;
for(int i=0;i<n;i++){
p=new Student;
p->id=i;
p->next=head; //此方法开始是 p->