Hiya,
Thanks for the prompt reply.
The only hting I'm still lost on is that my program uses the [] operator to find the nth smallest element within the array, and therein lies my problem, when I...
Type: Posts; User: Strahan
Hiya,
Thanks for the prompt reply.
The only hting I'm still lost on is that my program uses the [] operator to find the nth smallest element within the array, and therein lies my problem, when I...
Hello all,
Ok, I'm fairly good at C, (and was starting to think I getting decent at C++) but when it comes to overloading I seem to have missed the bus.
I'm trying to overload the [] operator...
I don't know how, but I figured it out. Its working now.
Thanks anyway.
I am working on a project using templates. I have a template class called Measures and another regular class called Meters.
I overrode the + operator in Measures and now want to use that
function...
Thanks. That did the trick.
:)
I'm working on a project and I need to overload some of the
basic operators (*, /, +, -, etc...) to work with Measure, my user-
defined class. I've managed to overload * so that Measure * ...
I didn't look too close at your code, but one thing I noticed is that you're trying to read from the keyboard with fgets. fgets is for reading data from files. You should use gets or scanf to get...