Hello, I was re-reading my c++ book, to see if I could better understand some stuff, but i am left with more questions. I am reading Beginning programming c++ through game programming second edition, and i have the following questions:
1. friend functions: i'm just overall confused on how I write/implement them and how to use them.
2. Overloading operators: First, let me see if i am understanding this. You need to overload operators when you are using them with your own classes. So do i need to rewrite the function for for each class i use them with. Also, how do i write the function and what parameters do i use.
3. Copy constructor: what purpose do they serve and how to i write the/ implement them.
Also, if i explained anything wrong in this please correct me. If you have any websites, videos, or other information i can use to better understand these concepts, please tell me. Thank you for all replies.
Edited by Mathew Bergen, 22 December 2012 - 01:21 AM.