Streams and files

I'm having a problem understanding what this problem wants me to do and what encrypt and decrypt are? Can anyone help please!

1. A function char EncChar (char C, int j, int flag) to receive a character (C) and its index (j) in the message. If flag = 0, the character is plain and we intend to encrypt it. In this case, the function returns the encrypted character by adding a displacement di obtained from a character Ki in a secret key in the form of a string of length (n) characters.

2. A function void encfile (string infile, string outfile) to encrypt/decrypt a whole text file of characters and write the result to another file. This function will call the character function EncChar for each input character.

3. A main function to:
• receive the input and output file names from the user.
• Set a flag = 0 to encrypt and flag = 1 to decrypt.
• Call the file encryption function encfile.
Double posting won't help you.
http://www.cplusplus.com/forum/beginner/186258/
Topic archived. No new replies allowed.