【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.5.2.11 INIFile::WriteDouble
Contents
Description
Write key value of double type into INI file.
Syntax
void WriteDouble( LPCSTR lpcszSection, LPCSTR lpcszKey, double dValue )
Parameters
- lpcszSection
- [input] Section name
- lpcszKey
- [input] Key name
- dValue
- [input] Key value
Return
Examples
EX1
void INIFile_WriteDouble_ex1() { // writes missing value into all the key values in all sections INIFile ini("EBGIF2.ini",FALSE); StringArray saSections, saKeys; ini.GetSectionNames(saSections); for( int iSection = 0; iSection < saSections.GetSize(); iSection++ ) { printf("%s\n", saSections[iSection]); ini.GetKeyNames(saKeys, saSections[iSection]); for( int iKey = 0; iKey < saKeys.GetSize(); iKey++ ) { ini.WriteDouble(saSections[iSection], saKeys[iKey], NANUM); double dVal = ini.ReadDouble(saSections[iSection], saKeys[iKey], 2.0); printf(" %s = %lf\n", saKeys[iKey], dVal); } } }
Remark
See Also
INIFile::WriteInt, INIFile::ReadDouble
Header to Include
origin.h