I am trying to make a small prog to encrypt files and I am not very good with equations, so I was wondering how you invert this equation:
echar = echar * (echar-1074) / wkey - 289;
echar is a float, and wkey is an int. Thanks for the help!
This is a discussion on Math question(algebra) within the C++ Programming forums, part of the General Programming Boards category; I am trying to make a small prog to encrypt files and I am not very good with equations, so ...
I am trying to make a small prog to encrypt files and I am not very good with equations, so I was wondering how you invert this equation:
echar = echar * (echar-1074) / wkey - 289;
echar is a float, and wkey is an int. Thanks for the help!
[code]
echar = 1. / (echar * (echar-1074) / wkey - 289);
It doesn't seem to work right, but I might just be my fault. What does the 1. thing do? I haven't seen that before. Thanks anyways.