The code is:
string plaintext = GetString();
for (int i = 0, n = strlen(plaintext); i < n; i++)
{
printf("%c", plaintext[i]);
if ((isalpha(plaintext[i])) && (isupper(plaintext[i])))
{
int letter = 'plaintext[i]' ;
int ciphertext = (letter + key) ;
}
And I get the errors "multi-character character constant" and "character constant too long for its type" for the line
int letter = 'plaintext[i]' ;
What do these mean and how do I fix them?