Question: make it better so that my second phrase outputs this Second phrase: Be cool Encoded text: Tj opiu not like what mine is
make it better so that my second phrase outputs this
Second phrase: Be cool"
Encoded text: Tj opiu"
not like what mine is outputting
Second phrase: Be cool"
Encoded text: Gq dixd"
void VigenereForwardIterator::encodeCurrentChar noexcept
if fKeys fKeys.end
if fIndex fSource.length
fCurrentChar ;
return;
char messageChar fSourcefIndex;
if std::isalphamessageChar
char keywordChar fKeys;
if std::isalphakeywordCharstd::isupperkeywordChar
fCurrentChar messageChar;
return;
sizet row keywordChar A;
sizet column std::touppermessageCharA;
if column CHARACTERS
char encodedChar fMappingTablerowcolumn;
if std::islowermessageChar
encodedChar std::tolowerencodedChar;
fCurrentChar encodedChar;
fKeys;
if fKeys fKeys.end
fKeys fKeys.begin;
else
fCurrentChar messageChar;
else
fCurrentChar messageChar;
void VigenereForwardIterator::decodeCurrentChar noexcept
if fKeys fKeys.end
if fIndex fSource.length
fCurrentChar ;
return;
char messageChar fSourcefIndex;
if std::isalphamessageChar
char keywordChar fKeys;
if std::isalphakeywordCharstd::isupperkeywordChar
fCurrentChar messageChar;
return;
sizet row keywordChar A;
sizet column ;
while column CHARACTERS && fMappingTablerowcolumn std::touppermessageChar
column;
if column CHARACTERS
char decodedChar A column;
if std::islowermessageChar
decodedChar std::tolowerdecodedChar;
fCurrentChar decodedChar;
fKeys;
if fKeys fKeys.end
fKeys fKeys.begin;
else
fCurrentChar messageChar;
else
fCurrentChar messageChar;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
