Search:

Type: Posts; User: Zigs

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,397

    http://www.talula.demon.co.uk/allegro/...

    http://www.talula.demon.co.uk/allegro/
    http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasics

    Allegro is easy to use (:
  2. Replies
    7
    Views
    1,682

    It works fine with me... ...

    It works fine with me...



    #include<iostream>
    #include <stdlib.h>

    using namespace std;

    //function definitions///////////////////////////////
  3. Replies
    7
    Views
    1,682

    I'm pretty sure you're missing: #include...

    I'm pretty sure you're missing:


    #include <stdlib.h>
  4. Replies
    11
    Views
    1,218

    You could also have changed cont from char to int...

    You could also have changed cont from char to int if you wanted to compare it with 1.

    As for the error with pointers and char I must admit that I've no idea.
    I guess someone more experienced...
  5. True.. This was the sort of reason I was looking...

    True.. This was the sort of reason I was looking for.




    I see. I am still learning.. and these examples surely made me understand why destructors doesn't take parameters. Thanks to both of you...
  6. Replies
    11
    Views
    1,218

    you could always write it like: } while...

    you could always write it like:


    } while (cont);

    As this will make the while fail if cont == 0 (and so you should write "(0) to exit. (1) to restart" or something similar)
  7. Replies
    11
    Views
    1,218

    What error does it cast? And a bit more of the...

    What error does it cast? And a bit more of the code would be good as well..
  8. Replies
    11
    Views
    1,218

    Yeah, done that a million of times myself :3

    Yeah, done that a million of times myself :3
  9. Replies
    11
    Views
    1,218

    } while (cont == "y"); (:

    } while (cont == "y");

    (:
  10. Yes. But the reason we are accessing the the...

    Yes. But the reason we are accessing the the destructor in the first place is because theres something we want done differently. For example if you have a linked list and want to destroy the list...
  11. Very true. But erm.. You see, I mixed words up. I...

    Very true. But erm.. You see, I mixed words up. I meant to say function overloading instead of polymorphisms (I keep mixing the words up.. >_>").
  12. [Edit] Having several destructors using...

    [Edit]
    Having several destructors using overloaded functions and that way still having the "standard" destructor which would be the one used for automatic calls?
    [\Edit] Sorry, mixed words up >_>...
  13. destructors and parameters + pointers to classes questions.

    2 questions.

    Why doesn't destructors take any parameters? It's not that it's a problem that they doesn't. It should be fairly simple to get around. I just don't see any reason to why it wont take...
  14. Thread: A practical help

    by Zigs
    Replies
    9
    Views
    5,370

    Wouldn't it be possible to have a function which...

    Wouldn't it be possible to have a function which took an int and a string and returned the int and the string as one string and then inset the function to replace the "0/n" part.

    Something like:...
Results 1 to 14 of 14