### PLAYFAIR MATRIX RETREIVING

hello everyone,
i am making a programme on the playfair matrix in which both cipher text and plain text is given to me and im ought to retrieve the KEYWORD.
i m stuck at a point where im suppose to start entering the elements in the 5*5 matrix because when i got a starting point,i m not getting it how/where to place it in the matrix since each pair can be placed according to 3 rules(ERDL,ECDL,RECTANGULARLY) and every initial entry can be placed in 25 ways.
 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990`` ``````#include #include #include #include using namespace std; int main() { char p[300],c[300],a[25][26]; int n,l,l2; cout<<"ENTER THE PLAIN TEXT : \n" for(int i=0;i<300;i++) { cin>>p[i]; if(p[i]=='.') { l=i; break; } } cout<<"\n\nENTER THE CIPHER TEXT : \n"; for(int k=0;k<300;k++) { cin>>c[k]; if(c[k]=='.') { if(k%2!=0) { cout<<"\n\nINVALID CIPHER TEXT(CANNOT PAIR IN DIAGRAPHS) ";//How to exit from the program??. } else { break; } } } l2=l; for(int i=0;i=i+1;j--) { p[j+1]=p[j]; } l2++; p[i+1]=p[i-1]; } } else { continue; } } cout<