1 | double eval(double a, double b, int op) { |
---|---|
2 | switch (op) { |
3 | case 0: return a+b; |
4 | case 1: return a-b; |
5 | case 2: return a/b; |
6 | case 3: return a*b; |
7 | default: return 0; |
8 | } |
9 | } |
10 | |
11 | int main (int argc, char const *argv[]) |
12 | { |
13 | double a = 42.0, b = 2.0; |
14 | float f = 42.0, q = 2.0; |
15 | return 0; //// Set break point at this line. |
16 | } |
17 |