没使用p也可以?书上说的好象一定要用p哦
											#include<stdio.h>
# define null 0
struct student
{
 long num;
 float score;
 struct student *next;
};
void main()
{
 struct student a,b,c,*head,*p;
 a.num=10101;a.score=89.5;
 b.num=10103;b.score=90;
 c.num=10107;c.score=85;
 head=&a;
 a.next=&b;
 b.next=&c;
 c.next=null;
 //p=head;
 do
 {
  printf("%ld,%f\n",head->num,head->score);
  //printf("%ld,%f\n",p->num,p->score);
     head=head->next;
    // p=p->next;
 }
 while(head!=null);
// while(p!=null);
}
我不使用指针p也可以同样输出正确结果,但书上说好象一定要用到P,用注释号的是用P的,结果一样。是不是都可以啊????



 
											





 
	    

 
	


