📄 cb_point.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -