Search:

Type: Posts; User: Lesshardtofind

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    7,518

    You could reduce all that code into ...

    You could reduce all that code into



    switch(arg){
    case "+": cout<<add(x,y); break;
    case "-": cout<<subtract(x,y); break;
    case "*": cout<<multiply(x,y); break;
    ...
  2. Replies
    9
    Views
    7,518

    You could use a switch statement. Also the word...

    You could use a switch statement. Also the word argument could be swapped with operator which would make more sense.
Results 1 to 2 of 2