1. 首页
  2. 移动开发
  3. 其他
  4. 张乃孝版的数据结构课本课件讲解代码farmerProblem.c.doc

张乃孝版的数据结构课本课件讲解代码farmerProblem.c.doc

上传者: 2020-12-12 04:49:18上传 DOC文件 25.5KB 热度 7次
/* farmerProblem.c*/ /* 用队列解决农夫过河问题*/ #include #include #include "SeqQueue.c" /*个体状态判断函数*/ int farmer(int location) { /*判断农夫的位置*/ return (0 != (location & 0x08; } int wolf(int loc
下载地址
用户评论