首页 > 用户发贴区 > 编程问题提问区 > 求教C语言问题,大家帮忙
2009
06-13

求教C语言问题,大家帮忙

给出了两个datentyp
1.关于测量值的
[code]struct measure
{     double mv;    /* measured value*/
       char dim[6];  /* Dimension (physical unit)*/
}[/code]

2.关于测量值list的knot
[code]struct mlist
{    struct measure mp;
      strcut mlist nf;    /* succession pointer */
}[/code]

写出一个程序,要求有以下prototyp
1. int main(void)
2. struct measure catch(void)
3. struct mlist* addition(struct mlist *ank,struct measure z)
4. void provide(struct mlist *ank)

要求
1.无限次循环,由使用者选择 (1)输入一个新的测量值并加在list尾 (2)在显示器上给出当前的测量值list
2.从键盘输入新的测量值及其单位
3.在funktion addition()中把list从头到尾定位,然后把新的被z赋值的knot加在队尾
4.给出当前的测量值list

这是我们变态的java老师给的C语言题,没学过C,不太懂pointer是怎么用的,求各位帮帮忙了。。。
因为题是小弟自己从德语翻成英语的,有不明白的地方请大家指出来,谢谢了。。。


求教C语言问题,大家帮忙》有 1 条评论

留下一个回复