入口参数:

  • device[]: 设备数组,用于存储设备信息
  • count: 设备数量,表示设备数组的长度

出口参数: 无

统计设备信息void statisticsDevice device int count int totalDevices = 0; 设备总数 int borrowedDevices = 0; 已借出设备数 int i; for i = 0; i count; i++	 totalDevices++; if strcmpdevicei