arrays - c++ adding a menu for operations -


The code below which works so far, my question is that I want to include a menu here How do I move operators from text files to matrix?

The example determiner, addition, subtract, etc. for operations

  #include    

You can type something like using the Emmoles and Switch Statement: Option Options {Operation 1, Operation 2, Operation 3}; Cout & lt; & Lt; "Operations: \ n \ n"; Cout & lt; & Lt; "Operation 1 -" & lt; & Lt; Operation 1 & lt; & Lt; "\ N"; Cout & lt; & Lt; "Operation 2 -" & lt; & Lt; Operation 2 & lt; & Lt; "\ N"; Cout & lt; & Lt; "Operation 3 -" & lt; & Lt; Operation 3 & lt; & Lt; "\ N"; Cout & lt; & Lt; "Your choice: "; Int likes; Cin & gt; & Gt; the option; Switch (Preferred) {Case Operation 1: Cott & lt; & Lt; "You have selected the operation. \ N"; break; Case Operation 2: Cot and LT; & Lt; "You chose operation 2. \ N"; break; Case Operation 3: Cot and LT; & Lt; "You chose operation 3. \ N"; break; Default: cout & lt; & Lt; "You made an illegal election. \ N"; break; }

Once this is done, you can put it in some loop / loop where you have to do it, and whenever you need to do it ...

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -