{
"total": 4,
"totalNotFiltered": 4,
"rows": [
{
"id" : 0,
"uid" : "1166E523-2F40-65BC-1149-71449B66E9D8",
"time_stamp" : 1590396226,
"public_key" : "123",
"private_key" : "123"
},
{
"id": 1,
"uid" : "6C1D4749-55AF-67B9-E01C-166391757836",
"time_stamp" : 1590396356,
"public_key" : "123",
"private_key" : "123"
},
{
"id": 2,
"uid" : "001B478F-7441-A951-E7EA-C4973F6959E0",
"time_stamp" : 1590396393,
"public_key" : "123",
"private_key" : "123"
},
{
"id": 3,
"uid" : "BD05974F-5B35-3B7E-95ED-520F6429B46C",
"time_stamp" : 1590397179,
"public_key" : "123",
"private_key":"123"
}
]
}
{
"total": 4,
"totalNotFiltered": 4,
"rows": {
{
"1166E523-2F40-65BC-1149-71449B66E9D8": {
"time_stamp":1590396226,
"public_key":"123",
"private_key":"123"
}
},
{
"6C1D4749-55AF-67B9-E01C-166391757836": {
"time_stamp":1590396356,
"public_key":"123",
"private_key":"123"
}
},
{
"001B478F-7441-A951-E7EA-C4973F6959E0": {
"time_stamp":1590396393,
"public_key":"123",
"private_key":"123"
}
},
{
"BD05974F-5B35-3B7E-95ED-520F6429B46C": {
"time_stamp":1590397179,
"public_key":"123",
"private_key":"123"
}
}
}
}
{
"total": 4,
"totalNotFiltered": 4,
"rows": [
{
"uid":"1166E523-2F40-65BC-1149-71449B66E9D8",
"time_stamp":1590396226,
"public_key":"123",
"private_key":"123"
},
{
"uid":"6C1D4749-55AF-67B9-E01C-166391757836",
"time_stamp":1590396356,
"public_key":"123",
"private_key":"123"
},
{
"uid":"001B478F-7441-A951-E7EA-C4973F6959E0",
"time_stamp":1590396393,
"public_key":"123",
"private_key":"123"
},
{
"uid":"BD05974F-5B35-3B7E-95ED-520F6429B46C",
"time_stamp":1590397179,
"public_key":"123",
"private_key":"123"
}
]
}
auto snames = istringstream(info_txt);
std::vector<std::string> names;
std::string nname;
while (getline(snames, nname, '\n'))
{
names.push_back(nname);
}
String_t const s = GetStroke();
ofstream fout("PRINT.txt");
fout << s;
fout.close();
system("pause");
const std::string STRING[] =
{
"xxxxxxxxxxxxxxxxxx",
"yyyyyyyyyyyyyyyyyy",
"zzzzzzzzzzzzzzzzzz",
};
std::string VERS_ONE = StringGetHost; // получаем строку с хоста вида "xxxxxxxxxxxx|yyyyyyyyyyyy|zzzzzzzzzzzzz"
std::string VERS_TWO[ ] = {
"xxxxxxxxxxxx",
"yyyyyyyyyyyy",
"zzzzzzzzzzzzz",
};
std::string VERS_ONE(const std::string&& StringGetHost) {
.
// Тут обработка
.
return vers_one // полный аналог VERS_TWO
}
void mass(char filePath[]) {
fstream file(filePath, ios::in | ios::out | ios::binary);
if (!file) {
return;
}
file.seekg(0, ios::end);
unsigned fileSize = file.tellg();
file.seekg(ios::beg);
file.close();
// тут как то нужно записывать в память значение fileSize и суммировать все значения,
// обновляя итоговый результат в памяти
}
unsigned fileSize = file.tellg();