Код: Выделить всё
syntax="proto3";
message test{
int64 number
string name;
}
< /code>
Я создаю объект сообщения в моем коде C ++ < /p>
test obj;
obj.set_name("test");
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79639487/string-field-is-not-set-in-protobuf-with-c-on-windows[/url]
Мобильная версия