正在加载图片...
得分 评卷人 四、写出下列每个函数的功能(每小题6分,共12分) 1.int FH()( int x,y=0; scanf("%d",&x); while(x!=-l){y+=x;scanf("%d",&x);》 return y; } 函数功能: 2.int FF(struct IntNode *f) /任为指向一个单链表的表头指针 int n=0; if(!f)return 0; while(f)( n十十 f=f->next; } return n; 假定struct IntNode的类型定义为: struct IntNode int data;struct IntNode next;); 函数功能: 1353得 分 评卷人 四、写出下列每个函数的功能(每小题 6分,共 12分) 1. int FH() int x,y=0; scanf("oo了,&x); while(x!二一1){y+=x; scanf("%d‘, &x); return y; 函数功能: 2. int FF(struct IntNode * f) //f为指向一个单链表的表头指针 int n= 0 if(!f) return 0; while(f) n十 + f=f一>next; return n 假定struct IntNode的类型定义为: struct IntNode{int data;struct IntNode * next; 函数功能: 1353
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有