Contact: aviboots(AT)netvision.net.il
39,943 questions
51,884 answers
573 users
#include <iostream> struct ST { int num; std::string str; }; ST get_ST() { return ST{2134, "abc"}; } int main(void) { const auto [id, name] = get_ST(); std::cout << id << ' ' << name << '\n'; } /* run: 2134 abc */