Hello
I've run across a problem. In my code i am trying to use two classes, a 'decrypted' class and an 'encrypted' class.
The problem is, i want to write a function in the 'decrypted' class that returns an 'encrypted' object,
AND write a funciton in the 'encrypted' class that returns a 'decrypted' object.
However, i'm not sure what order i need to put things, or what code is needed to get a funciton in a class of one type to return an object of a different class.
Thanks.
Example:
Code:class encr{ public: ... decr encr_to_decr(void); ... }; class decr{ public: ... encr decr_to_encr(void); ... };





Reply With Quote