📄 6ix.cpp
字号:
// Drugdose.cpp Generate a recommended and actual drug
// dose for study patients.
#include <iostream.h>
#include "drugcalc.h"
const int NUMPATS = 100;
void main()
{ int count=0; // counter for patients.
float recommend; // recommended and actual
int actual; // drug doses.
char sex; // patient gender,
float weight; // patient weight, and
int age; // patient age.
cout << "Patient Drug Dose Report" << endl;
cout << " Sex Age Weight Dose Pill" << endl;
while (count < NUMPATS)
{ ReadPatient (sex, age, weight);
recommend = RecomDose (sex, weight);
actual = ActualDose (recommend);
cout << sex << " " << age << " " << weight << " " <<
recommend << " " << actual << endl;
count = count + 1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -