see this:-
Code:
# include<iostream.h>
# include<conio.h>

int expr_code[]={1,2,3};
char *exp[3]={"love","angry","sad"};

int main()
{
int choice,i,count=0;
int flag=1;
char *coded[3];
int j=0;
clrscr();
while(flag)
{
cout<<"press 1 if you are organisation A\n";
cout<<"press 2 if you are organisation B\n";
cout<<"press 3 if you want to exit\n";
cin>>choice;
switch(choice)
{
case 1:
cout<<"ready to send the codes to organisation B\n";
cout<<"actual data:- \n";

while(count<3)
{
cout<<expr_code[count];
cout<<exp[count];
cout<<"\n";
count++;
}


for(i=0;i<3;i++)
{

coded[j]=new char[10];
coded[j]=exp[(i+1)%3];
++j;

}
for(i=0;i<3;i++)
{
cout<<expr_code[i]<<" "<<exp[i];
cout<<"\n";
}

cout<<"data sent:- \n";
for(i=0;i<3;i++)
{
cout<<expr_code[i]<<" "<<coded[i];
cout<<"\n";
}



break;

case 2:
cout<<"ready to receive data from organisatin A";
cout<<"data received:-  \n";
for(i=0;i<3;i++)
{
cout<<expr_code[i]<<" "<<coded[i];
cout<<"\n";
}
     j=0;
 for(i=0;i<=3;++i)
 {
 exp[j]=new char[10];
exp[j]=coded[(i+2)%3];
j++;
  }
cout<<"actual data :  \n";
for(i=0;i<3;i++)
{
cout<<expr_code[i]<<" "<<exp[i];
cout<<"\n";
}

break;
case 3:
flag=0;
break;
}
}
getch();
return 0;
}