Search:

Type: Posts; User: R41D3N

Search: Search took 0.00 seconds.

  1. dont use system() . If you want to hold the...

    dont use system() . If you want to hold the display screen, better use cin.get();

    the way I suggested it, you wouldnt need an if-else block. Rather than user choosing which 2 to keep as is, let...
  2. just tell the user to enter the element he wants...

    just tell the user to enter the element he wants to switch with the average ... lets say x(0/1/2)

    then your lhs would become


    a[x] = ....


    You could work vectors the same way, if thats...
  3. I guess he means something like: #include...

    I guess he means something like:



    #include <iostream>
    #include <vector>



    And nop that wouldnt be necessary, since its just 3(size fixed) values. You might as well use an array of size 3.
Results 1 to 3 of 3