You are viewing a single comment's thread from:

RE: A C++ program to encrypt text

in #programming7 years ago (edited)

You'd be far better off replacing that ridiculous if-else tree with two arrays, one for the unencrypted letters and one for the encrypted letters and then write a single for loop that goes through the text and matches each letter to its encrypted counterpart. Your code will be much shorter and much less prone to error.

Also the "loveyou" function does absolutely nothing from what I can see.

Sort:  

thank you @chonusone for the info.. it really help me a lot

Coin Marketplace

STEEM 0.22
TRX 0.26
JST 0.039
BTC 98362.82
ETH 3451.59
USDT 1.00
SBD 3.21