C ++ 구성 파일 관련

1.

#ifndef COMMON_H
 #DEFINE COMMON_H 

형식 정의 구조체 _StructConfig 
{ 
    표준 : : 문자열 FILE_NAME; 
StructConfig}; 

통근 StructConfig sconfig를; 

#endif 다음
    구성 configSettings ( " ../config.ini " ); 
    sConfig.file_name = configSettings.Read ( " FILE_NAME " , sConfig.file_name);
# config.ini 파일의 
FILE_NAME = .. / test.mp4

 

추천

출처www.cnblogs.com/mathyk/p/12067303.html