
29.03.2022, 00:31
|
|
Участник форума
Регистрация: 27.05.2021
Сообщений: 140
С нами:
2614229
Репутация:
33
|
|
Потому что не работает? не правильно пишет значения
GitHub - metayeti/mINI: INI file reader and writer
INI file reader and writer. Contribute to metayeti/mINI development by creating an account on GitHub.
github.com
C++:
Код:
mINI
::
INIFile
file
(
".//SAMPFUNCS//color.ini"
)
;
mINI
::
INIStructure ini
;
file
.
read
(
ini
)
;
std
::
string
&
R
=
ini
[
"config"
]
[
"R"
]
;
ini
[
"config"
]
[
"R"
]
=
int
(
my_color
[
0
]
*
255
)
;
file
.
write
(
ini
)
;
file
.
read
(
ini
)
;
std
::
string
&
G
=
ini
[
"config"
]
[
"G"
]
;
ini
[
"config"
]
[
"G"
]
=
int
(
my_color
[
1
]
*
255
)
;
file
.
write
(
ini
)
;
file
.
read
(
ini
)
;
std
::
string
&
B
=
ini
[
"config"
]
[
"B"
]
;
ini
[
"config"
]
[
"B"
]
=
int
(
my_color
[
2
]
*
255
)
;
file
.
write
(
ini
)
;
|
|
|