Search:

Type: Posts; User: yosef_yaniv

Search: Search took 0.00 seconds.

  1. Thread: templates

    by yosef_yaniv
    Replies
    9
    Views
    1,536

    Hey matsp. I tried both you're solutions but that...

    Hey matsp. I tried both you're solutions but that doesn't seem to be the problem...

    any other ideas?
  2. Thread: templates

    by yosef_yaniv
    Replies
    9
    Views
    1,536

    templates

    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...
  3. Thread: <unistd.h>

    by yosef_yaniv
    Replies
    1
    Views
    3,541

    View Post

    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...
  4. Thread: include

    by yosef_yaniv
    Replies
    10
    Views
    1,297

    The thing is i'm implementing an operator so I...

    The thing is i'm implementing an operator so I can't do it in a .cpp file, can I???
  5. Thread: include

    by yosef_yaniv
    Replies
    10
    Views
    1,297

    It doesn't work. for some reason the compailer...

    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????
  6. Thread: include

    by yosef_yaniv
    Replies
    10
    Views
    1,297

    I'm almost there... Say I don't have any .cpp...

    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...
  7. Thread: include

    by yosef_yaniv
    Replies
    10
    Views
    1,297

    include

    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...
  8. Replies
    9
    Views
    1,573

    That what it suppos to return. But that's the...

    That what it suppos to return.
    But that's the smallest part of my problem...
    The big thing is described above
  9. Replies
    9
    Views
    1,573

    You'r first diagnosis was accurate. I am using 3...

    You'r first diagnosis was accurate. I am using 3 deriven cllases name Int, Float and String. The operator was just for the example...
  10. Replies
    9
    Views
    1,573

    I'm afride i did not understand you explanation ....

    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...
  11. Replies
    9
    Views
    1,573

    1st of all thanks for the reply... Anyway i...

    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...
  12. Replies
    9
    Views
    1,573

    multiple dispatch

    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...
  13. Replies
    5
    Views
    2,144

    Thanks!!!

    Thanks!!!
  14. Replies
    5
    Views
    2,144

    I more than agree but unfortunately that doesn't...

    I more than agree but unfortunately that doesn't seem to solve the problem...
  15. Replies
    5
    Views
    2,144

    urgent help needed!!!

    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...
Results 1 to 15 of 15