i cannot understand the squuence of this program at all
some one explain in details plz

#include<iostream>
using namespace std ;
void move(char,char,char,int) ;
int main()
{   
    int n;
    cout<<"Enter the plates numbers \n";
    cin>>n;
    move('a','b','c',n) ;system("pause");}
void move(char x,char y,char z,int n){
if(n>1) move(x,z,y,n-1);
cout<<x<<"----->"<<z<<"\n";
if(n>1) move(y,x,z,n-1);
}

First, we don't do your homework. Second, what don't you understand about the sequence? Read the program line by line and explain what it does.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.