我用c语言写了一个关于商人过河的问题 #include "stdio.h"#include "string.h"#include "conio.h"FILE *fp;/*设立文件指针,以便将它用于其他函数中*/struct a{long m,s;struct a *next;};/*数组类型a:记录各种情况下船上的商人和仆人数,m:代表商人数s:代表仆人数*/struct a *jj,head;/*head为头指针的链表单元(船上
修正我上次关于《商人过河的问题》 /*实在不好意思,在trans()函数中我没有把开始调试时的用的4改成total-1,现已改正,并已注明改正处,谢谢,并致以歉意*/#include "stdio.h"#include "string.h"#include "conio.h"FILE *fp;/*设立文件指针,以便将它用于其他函数中*/struct a{long m,s;struct a *next;};/*数组类型a:记录各