|
-
Jun 2nd, 2003, 09:56 PM
#1
Thread Starter
Fanatic Member
Class Heirachies
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);
...
};
sql_lall 
-
Jun 2nd, 2003, 11:26 PM
#2
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|