RE: A C++ program to encrypt text

You are viewing a single comment's thread from:

A C++ program to encrypt text

in programming •  7 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.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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