Создать структуру данных С++ как словарь в Python

Что то подобное

 slave = [
{
address: 0,
value:0,
description:'description',
},
{
address: 0,
value:0,
description:'description',
}
]

Ответы (1 шт):

Автор решения: Qwertiy
struct smth
{
  int address;
  int value;
  std::string description;
};

std::vector<smth> slave;
→ Ссылка