Thread: return types
View Single Post
Old 12-31-2004, 08:10 AM   #18 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes, indeed. Well done.
However, one shouldn't redifne C and C++ intrinsic methods and functions. But it is possible.
Look at the 7th post in this thread. That is my post. Check out how I could redefine "dec". Although "dec" is an C++ indentifier.

Here's a little practice for you:
- Make your own abs() function.
- Demonstrate how to use yours, and how to use the one that came with C++.
__________________
Valmont is offline   Reply With Quote