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