Contact: aviboots(AT)netvision.net.il
39,943 questions
51,884 answers
573 users
#include <iostream> #include <array> struct Color { std::array<int, 3> getRGB() const { return {255, 178, 92}; } }; int main() { Color color{}; auto [r, g, b] = color.getRGB(); std::cout << r << ' ' << g << ' ' << b; } /* run: 255 178 92 */