6xi.cpp

来自「C/C++程序设计导论(第二版)》程序源文件」· C++ 代码 · 共 13 行

CPP
13
字号

// ReadPatient()  Input a free-form line of patient data
// ASSUMPTION: input lines conform to the documented format
// OUT: sex will be returned as the letter `F' or `M'
//		age will be returned as an integer following the input `A'
//		weight will be returned as a float following the input `W'
void ReadPatient (char& sex, int& age, float& weight)
{	ReadItem (sex, age, weight);
	ReadItem (sex, age, weight);
	ReadItem (sex, age, weight);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?