Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: BlueAngelTC

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    826

    Re: Function overloading

    Do you mean I should include each of the derived class in the base class? In Astratta?

    This is too ugly. It goes against every good rule of programming.
    I will use another class as dispatcher...
  2. Replies
    11
    Views
    826

    Re: Function overloading

    Astratta.h


    #ifndef ASTRATTA_H_
    #define ASTRATTA_H_
    class Astratta
    {
    public:
    Astratta();
    virtual ~Astratta();
  3. Replies
    11
    Views
    826

    Re: Function overloading

    I did it, the collide(Collision*) in every sub class and then in every sub class the othe methods:
    collide(CollisionBox*)
    collide(CollisionSphere*)




    This isn't necessary true: when I...
  4. Replies
    11
    Views
    826

    Re: Function overloading

    First, thank you all for your answers.


    What do you mean? I'm not sure to understand clearly. "collide" is virtual (pure, thought).



    Which others two methods? The ones I suggested? To...
  5. Replies
    11
    Views
    826

    Function overloading

    Hi to everyone,
    I have a little problem with my classes but before describing the problem I wish to ask forgiveness if similar questions were made before. This forum is huge and I'm unsure what to...
  6. Re: Design problem with a virtual template class

    Thank you very much for your replies guys.

    I found what's the real problem: the destructor in the class Matrix is pure virtual, making it just virtual and giving him an (empty) definition the code...
  7. Re: Design problem with a virtual template class

    I use GCC on Linux.
    I know a derived class can access protected members, that's the reason _righe and _colonne are protected and not private.
    But.....
  8. Re: Design problem with a virtual template class

    @Muthuveerappan
    Ok, now I'm really confused: your code compile and work O_o

    I thought, as I've read since now, that templates cannot be virtual... so if this can be possibile what's wrong with my...
  9. Re: Design problem with a virtual template class

    @Muthuveerappan
    My apologize, I've read wrong your reply. (I read "they cannot" instead of "they can").

    No, as far I found on Internet (and the error gcc give me) they cannot combined.

    And...
  10. Re: Design problem with a virtual template class

    I'm a bit confused JohnW,
    thank you for your reply but your code won't even compile. As mine it won't for the same reason: a template function cannot be virtual.
    The operator() in Matrix is a...
  11. Design problem with a virtual template class

    Hi to all,
    I'm new to this forum, nice to meet you.

    Let me explain my problem: I am from Java. Yes, I know there is no cure for this but please be patient with me, I'm a Java programmer not due...
Results 1 to 11 of 11


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center