![]() |
|
#1
|
||||
|
||||
"No matching function" errorWhen trying to compile my program, I get:
Code:
Any ideas? Thanks. (As the files are somewhat long, I thought it best to just attach them.) __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#2
|
||||
|
||||
|
I really don't get your code.
You have: CPP / C++ / C Code:
But wavelength is a method in class Color, not in std::string; that's what the compiler is complaining about. I kind of got the idea of what you are trying to accomplish, but come on! Best regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
||||
|
||||
|
I see you have a conversion constructor for Color, but it is an abstract class and can't instantiate it!
Plus I think you need something like this to "invoke" the constructor: CPP / C++ / C Code:
I'm sure you head something (really complicated Kind regards, Luci [edit] Where are these things defined? (things = RED, ORANGE...) CPP / C++ / C Code:
__________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#4
|
||||
|
||||
|
Honestly, I'm just tired of fighting w/ this problem. I've been working on it for nearly a month, using the help from this forum, my school's forum, and waiting in vain for help from my teacher. I did get a small code file from him, which included the else/if statements you noted, but no guidance on how to fix my problems.
I didn't even notice the fact I was calling a Color class method with the input string name. I think I see something of what I need to do, based on your questions. I'll play w/ it a little more. Thanks for the kick in the butt. :-P __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
A Week in Kuwait by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 15:41 |
| Operator Overloading: << | aaroncohn | C++ Forum | 36 | 07-Dec-2004 19:22 |
| link error? | pablowablo | C++ Forum | 14 | 19-Jun-2004 10:00 |
| OpenGL always reports error | mvt | OpenGL Programming | 2 | 04-Jun-2004 06:42 |
| Visual C++ 6 Compiler error | vip3r | C++ Forum | 2 | 13-Apr-2004 14:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The