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