cb_point.cpp
来自「LINUX系统下基于ARM处理器的使用GPRS方式通过SOCKET数据包进行煤矿」· C++ 代码 · 共 29 行
CPP
29 行
#include "CB_Point.h"
#include "CB_Unit.h"
#include "Afx.h"
//##ModelId=40B818AE0293
POINT *CB_Point::getPoint(char *index)
{
FILE *pFile;
pFile = fopen("dat/point.dest","r");
POINT point;
m_search_point = NULL;
while(1==1){
if(fread(&point,sizeof(POINT),1,pFile)< 1){
break;
}
char *pIndex;
pIndex = point.index;
CB_Unit::trim(pIndex);
if(strcmp(pIndex,index) == 0){
m_search_point = &point;
break;
}
}
fclose(pFile);
return m_search_point;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?