Search:

Type: Posts; User: Efe

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    4,241

    Re:

    And the solution is


    #include <iostream>
    #include <iomanip>
    using namespace std;
    int vArray[] = {1,2,3,4,5,6,7,8,9};
    const int vsize = 9;
    void rotateLeft(int foo[], int size) {
    int temp;
  2. Replies
    5
    Views
    4,241

    yes! why couldn't i think of it, swapping two...

    yes!
    why couldn't i think of it, swapping two adjacent elements would work,
    Thanks Thantos,
    I will try this solution and post it here.
  3. Replies
    5
    Views
    4,241

    I need a recursive function, not iterative or not...

    I need a recursive function, not iterative or not a loop
  4. Replies
    5
    Views
    4,241

    Recursive Rotate Left

    an exercise;
    I want to write a recursive function that rotates left an integer array, i.e. the given array
    1 2 3 4
    will be
    2 3 4 1
    after the function executed.
    for this I write

    #include...
Results 1 to 4 of 4