☆─────────────────────────────────────☆
leonjld (三天打鱼) 于 (Thu Nov 27 09:41:54 2008) 提到: http://www.functionx.com/cpp/examples/returnreference.htm
does it work?
double & GetWeeklyHours()
{
double h = 46.50;
double &hours = h;
return hours;
}
and if yes, what's the difference between "return h" and "return hours"
or the tutorial was written by a vegetarian bird?
☆─────────────────────────────────────☆
littlewing (swansong) 于 (Thu Nov 27 10:34:17 2008) 提到:
it works.
2 good way