标题:不知道这个程序是怎么执行的谢谢大家帮我看一下好么?
取消只看楼主
ranzizhou
Rank: 1
等 级:新手上路
帖 子:3
专家分:2
注 册:2011-2-17
结帖率:100%
已结贴  问题点数:20 回复次数:0 
不知道这个程序是怎么执行的谢谢大家帮我看一下好么?
#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 %5.1f\n",p->num,p->score);
  p=p->next;
 }while(p!=null);

}
谁能和我说一下这个程序是怎样执行的,谢谢了各位
搜索更多相关主题的帖子: null long 
2011-02-24 12:05



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-332704-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.095367 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved