如何编写逻辑以检查患者在床上的占用情况? [英] how to write logic to check the occupancy of patient on a bed ?

查看:61
本文介绍了如何编写逻辑以检查患者在床上的占用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写逻辑以检查患者在床上的占用情况?

假设有一位患癌症的1号病床位.答:
假设有一个2号患癌症的病床. B.

我需要按钮上的逻辑来交换以下条件,
1.如果疾病相同,则只会发生交换.
2.如果有空床(空置),则仅会发生交换.

请让我知道我应该如何编写代码,谢谢...

how to write logic to check the occupancy of patient on a bed ?

Suppose there is a patient no.1 suffering from cancer reserved bed no. A.
Suppose there is a patient no.2 suffering from cancer reserved bed no. B.

I need logic on a button for swapping for following conditions,
1.if disease are same then only swap will happen.
2.if any bed is unoccupied(Vacant) then only swap will happen.

Just let me know how should i write the code,Thanks...

推荐答案

This[^] will teach you how to write code as your question is far too vague to answer directly.


这篇关于如何编写逻辑以检查患者在床上的占用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆