main.cpp
//fn to create the vigenere alphabet matrix

fn to create the vigenere alphabet matrix
fn to create the vigenere alphabet matrix
void vig::vigmatrice()
{
    int i, j, k = 0;
    char alph[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    for (i = 0; i < 26; i++)
    {
        for (j = 0; j < 26; j++)
        {
            if ((j + k) < 26)
                cipher[i][j] = alph[j + k];
            else
                cipher[i][j] = alph[j + k - 26];
        }
        k++;
    }
}
void vig :: vigmatrice ( ) { int i , j , k = 0 ; char alph [ 27 ] = " " ; for ( i = 0 ; i < 26 ; i ++ ) { for ( j = 0 ; j < 26 ; j ++ ) { if ( ( j + k ) < 26 ) cipher [ i ] [ j ] = alph [ j + k ] ; else cipher [ i ] [ j ] = alph [ j + k - 26 ] ; } k ++ ; } }
fn to create the vigenere alphabet matrix
fn to create the vigenere alphabet matrix