I'm not sure what you mean by "multiple tuples" -- to me, a 3-tuple is just three numbers, etc. Anyway, maybe this code will strike some sparks:
Code:
#include <iostream>
#include <vector>
std::vector<int> sample(void) {
std::vector<int> retval;
retval.push_back(1);
retval.push_back(2);
retval.push_back(3);
return retval;
}
int main(){
std::vector<int> george;
george = sample();
std::cout << george[0] << std::endl;
std::cout << george[1] << std::endl;
std::cout << george[2] << std::endl;
return 0;
}