main.cpp
//fn to display the generated grid of the playfair cipher

fn to display the generated grid of the playfair cipher
fn to display the generated grid of the playfair cipher
void playfair::display_playfair()
{
    system("cls");
    cout << "Plaintext:  " << plaintext_playfair << '\n';
    cout << "Ciphertext: " << ciphertext_playfair << "\n\n";
    cout << "      Grid: \n       ";
    int i;
    for (i = 0; i < 5; i++)
    {
        int j;
        for (j = 0; j < 5; j++)
            cout << grid[i][j] << "  ";
        cout << "\n       ";
    }
}
void playfair :: display_playfair ( ) { system ( " " ) ; cout << " " << plaintext_playfair << ' \n ' ; cout << " " << ciphertext_playfair << " \n \n " ; cout << " \n " ; int i ; for ( i = 0 ; i < 5 ; i ++ ) { int j ; for ( j = 0 ; j < 5 ; j ++ ) cout << grid [ i ] [ j ] << " " ; cout << " \n " ; } }
fn to display the generated grid of the playfair cipher
fn to display the generated grid of the playfair cipher