Hi,
I am having trouble comparing characters from two strings.
This is what I have
void encrypt(string plaintext, string vigenere_table[length][length], string keyword, string& ciphertext)
{
int row, col;
for(int i=0; i<20; i++)
{
for(int x=0; x<length; x++)
{
if(vigenere_table[x][1] == plaintext[i]) //wont let me use ==
row = x;
}
for(int y=0; y<length; y++)
{
if(vigenere_table[0][y] == keyword[i]) //wont let me use ==
col = y;
}
ciphertext += vigenere_table[row][col];
}
}
Thanks in advance.