Jul 5, 2012 at 7:09pm
yes, right probably another solution could be to make one of those variables global.
Jul 5, 2012 at 7:10pm
1 2 3 4 5 6 7 8 9
|
pair<int, double> fun(){
int x;
double y;
//computations
//...
return make_pair(x, y);
}
| |
Last edited on Jul 5, 2012 at 7:10pm