|
-
October 27th, 2012, 07:24 AM
#4
Re: Overriding the prefix/postfix operators
 Originally Posted by taymaxi
Okay...to be honest, I'm not really sure what most of that means.
Well that's what learning is all about. However, a bit of googling will often get you a long way. E.g. C++ explicit constructor
 Originally Posted by taymaxi
Some of the other problems you listed are, I think, required by my instructor even if they are bad design. Maybe I'm wrong though.
Well, even if your instructor requires you to do things that are considered bad programming, you can still learn them the right way. 
Just think about how you would use the class that you've implemented in a program.
However, your teacher did implicitly refer to one of the points I made.
 Originally Posted by taymaxi
For full credit use const wherever appropriate"
That is called "const correctness".
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
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
|