
March 4th, 2003, 12:56 AM
|
|
Contributing User
|
|
Join Date: Feb 2001
Posts: 1,365

Time spent in forums: 18 h 20 m 28 sec
Reputation Power: 14
|
|
|
double get_result(char* operator, double operand1, double operand2)
{
//define your function here: a switch statement with cases for each operator would be one choice
}
cout<<get_result( get_operator(), get_operand1(), get_operand2());
Last edited by 7stud : March 4th, 2003 at 01:03 AM.
|