Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

Moving of Character within an array

  Asked By: Vincent    Date: Nov 29    Category: C++ Programming    Views: 892
  

I am required to create an cipher that encrypted a message using a certain keyword with assumption that user will not repeat any alphebet for the keyword.(if user repeat any alphebet the program will not run.)it also requires user input of keyword and message for the program to run.

example
keyword : TIGER
alphebet in original order:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
these letter will be encrypted as such :
T I G E R Z Y X W V U S Q P O N M L K J H F D C B A
originally message will be:
I HAVE ATE AN APPLE.
after encrypting it will be:
B XTFR TJR TP TNNSR.

spacing and punctuation will be ignored in this case.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Moving of Character within an array Or get search suggestion and latest updates.




Tagged: