Hey matsp. I tried both you're solutions but that doesn't seem to be the problem...
any other ideas?
Type: Posts; User: yosef_yaniv
Hey matsp. I tried both you're solutions but that doesn't seem to be the problem...
any other ideas?
Hey all.
I'm trying to study for a C++ test and I just got to the templates section.
I'm trying to run the above code and get:
"error C2670: 'Sqr<T>::doIt' : the function template cannot convert...
Hey all.
I'm trying to include <unistd.h> and the compiler (Visual Studio) claims:
"Error 1 fatal error C1083: Cannot open include file: 'unistd.h': No such file or...
The thing is i'm implementing an operator so I can't do it in a .cpp file, can I???
It doesn't work. for some reason the compailer claims "use of undefined type 'A'" when I tyr to call some_obj->print();
I'm soon to be out of my mind... anyone????
I'm almost there...
Say I don't have any .cpp files. All implementation are in the headers.
Now in header B I have an object name some_obj typed A*, and I want to call
some_obj->print().
How...
Hello.
I'm building a program with 4 classes:
1) Abtract-Base class - Father
2) Inherit Class - A
3) Inherit Class - B
4) Inherit Class - C
I need A, B and C to include each other...
That what it suppos to return.
But that's the smallest part of my problem...
The big thing is described above
You'r first diagnosis was accurate. I am using 3 deriven cllases name Int, Float and String. The operator was just for the example...
I'm afride i did not understand you explanation . Would you clarify it?
About the question you asked, adding string and int is possible due to + operaor (see bottom) I loaded on the String class...
1st of all thanks for the reply...
Anyway i might not reconizing my problem / path to solution accurately .
I need to build a program that will allow the user to add float/int/string with each...
Hey everyone!
I'm trying to deal multimethods issue with no success until now. I'll describe my problem shortly:
I have an abstract base class name Data, which contain one virtual abstract...
Thanks!!!
I more than agree but unfortunately that doesn't seem to solve the problem...
Hey everyone!
I'm trying to pull this next code and for some reason, a reason i can't understand, the bold line marked in red is being ignored by the compiler. It just skips it and continue to the...