Encrypted arithmetical operations c++

Hi, I need help with a c++ code.

Program is supposed to read a 1st .txt file, encrypt the text, make the arithmetical operation (add, substract, etc) and put the answers on 2nd file.

example:

0 1 2 3 4 5 6 7 8 9 + - * /
A y ! 8 T & Q E P F C c ) @

text on 1st file:
8A!T ) &

which equals to:
(3024) * (5)

output on 2nd file:
(3024) * (5) = 15120

Im new here and I hope you guys can help me. thanks
Last edited on
@TarikNeaj

Thanks but im not having problems with reading files, i just dont know how to encrypt the message (string) and do the operation.
This should be a piece of cake using std::map.

Do you know what text is inside 1st.txt?
Last edited on
@DeathLeap yes

the text is already in the 1st file, the program just reads it, encrypts it and puts the encrypted text on the 2nd file.

just like the example i put, the 1st file already has a text(String), which is 8A!T ) &

Anyone? :(
Topic archived. No new replies allowed.