?? cb_sensor.cpp
字號:
#include "CB_Sensor.h"
#include "CB_Unit.h"
//##ModelId=40B434D0000C
SENSOR *CB_Sensor::getSensor(char *index)
{
FILE *pFile;
pFile = fopen("dat/sensor.dest","r");
SENSOR sensor;
while(1==1){
if(fread(&sensor,sizeof(SENSOR),1,pFile)< 1){
break;
}
char *pIndex;
pIndex = sensor.index;
CB_Unit::trim(pIndex);
if(strcmp(pIndex,index) == 0){
m_search_sensor = &sensor;
break;
}
}
fclose(pFile);
return m_search_sensor;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -