Search:

Type: Posts; User: Aidman

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,428

    friendly assignment operator

    I'm having difficulty writing a friend operator, checkout the code below. The first operator compiles fine, but the second (the “=” operator) gives me a bunch of errors (first of which says “error...
  2. Replies
    6
    Views
    2,172

    Yes, precisely.

    Yes, precisely.
  3. Replies
    6
    Views
    2,172

    No not main but the function the "terminating"...

    No not main but the function the "terminating" routine was called from. Instead ending the program and never returing, such as the case with exit().

    To further clarify:
    I am looking for a...
  4. Replies
    6
    Views
    2,172

    Exit with Return

    Hi

    I am looking for a “termination” routine that executes finalization/cleanup code, registered via atexit() and global/static object deconstructors, except it doesn’t end the process. Instead...
  5. Replies
    12
    Views
    3,828

    Nice try Thantos, good idea with the namespace...

    Nice try Thantos, good idea with the namespace even thought it wasn't supposed to work. However an esential part of my problem would still remain had the solution worked. Letting the class user have...
  6. Replies
    12
    Views
    3,828

    neandrake: Yes it is possible even globally. ...

    neandrake:
    Yes it is possible even globally.

    Micko:
    I have tried googling to find an answer but only stumbled across simple how-to overload new and delete for general purposes, nothing in this...
  7. Replies
    12
    Views
    3,828

    private overloading of new & delete

    Hi

    I have been looking at some custom memory management and I am curious about new/delete overloading. I would like to know if one can limit overloaded new & delete operators to a template...
  8. Replies
    3
    Views
    10,219

    thanks alot mate!!

    thanks alot mate!!
  9. Replies
    3
    Views
    10,219

    class template Prototype?

    Hi,

    I am having a problem declaring a class template prototype, i.e:

    template <class type>
    class foobar<type>; // the prototype

    // some code...

    template <class type>
  10. How to get multiple local IP addresses without gethostbyname()

    Hi,

    I am looking for a way to resolve all IP addresses on a local Unix/Linux system without using gethostbyname, since it has proven unable. For me, gethostbyname returns only one IP while...
  11. Replies
    2
    Views
    12,659

    How to hide cursor in a Linux/Unix console?

    Hi,

    I am looking for a way to hide the cursor in a Linux/Unix console, or at least move the cursor to a desirable position. I don’t wish to permanently alter the cursor, just while my program runs...
  12. Replies
    0
    Views
    1,496

    clipboard functions

    I am trying to write a console program that needs access to the clipboard, but I am having a hard time finding any info. Where can I find the clipboard functions? Are the functions the same in...
  13. Replies
    5
    Views
    1,732

    Thanks for the quick replies, no it doesn't...

    Thanks for the quick replies, no it doesn't really matter if it's a C or C++ answer.

    Is there was any function able to give the required buffer size for a number-to-string conversions?
  14. Replies
    5
    Views
    1,732

    Avoiding Buffer Overflows

    How can one avoid buffer overflows when wanting to format strings or convert numbers to strings? Is there any equivalent functions to for ex. itoa() or sprintf(), where a maximum buffer length can be...
  15. Replies
    3
    Views
    1,934

    Function template in a Class template?

    What's the syntax for a "function template" in a "class template"?



    template <class ClsType>
    class Class {
    template <typename FuncType>
    void Function(FuncType Object);
    };
  16. Replies
    2
    Views
    1,170

    Thanks! :) hmm... I searched on the phrase...

    Thanks! :)

    hmm... I searched on the phrase "invert pen" and "c++", but ended up with nothing... so I searched on "invert drawing" and etc. Hehe... obviously a bad chosen phrase :D
  17. Replies
    2
    Views
    1,170

    Invert Pen/Line?

    Hi all,

    I have searched several places including message boards and Google, without any result! Have I missed something or am I the first to ask regarding this:

    How can I create, or get an...
  18. Replies
    13
    Views
    2,506

    Thanks for your replys but it seems like there...

    Thanks for your replys but it seems like there ain't no better way than making a list of all the variable types and representing each of them with their own unique "Id" number. Life can be crule...
  19. Replies
    13
    Views
    2,506

    hmm... ok, sorry I might have been a bit...

    hmm... ok, sorry I might have been a bit unspecific.

    What I want is a variable that only holds a variable-type (like: int or double) and not its value. For ex:

    VARTYPE Type;

    Type = int; //...
  20. Replies
    13
    Views
    2,506

    Variable-type variable?

    Hi,

    I am in need of a variable that can contain any variable type. Something like this:

    VARTYPE Var;

    Var = int;
    Var = double;
    I know I can simply declare a bunch of constant numbers, who...
  21. If it where possible, then the listening function...

    If it where possible, then the listening function would return when a connection is requested by another comp. And the incoming data would be returned from the receiving function. Although I don't...
  22. Yes I know... but is it possible to use the same...

    Yes I know... but is it possible to use the same listning socket for communication with a non-connected client simultaneously? In a multithread app for ex:

    * socket S is created.
    * bind S to...
  23. single Socket for listening and sending/receiving, Simultaneously?

    Hi,

    Is it possible to use the same network Socket simultaneously, for listening (for incoming connections) and communicating with a non-connected client (using the sendto() and recvfrom()...
  24. Replies
    4
    Views
    1,350

    Yes thanks, I would I also appreciate such...

    Yes thanks, I would I also appreciate such information.
  25. Replies
    4
    Views
    1,350

    Managing Stack space?

    Hi :)

    I am trying to find out how a compiler manages the stack space. Does it only allocate the stack memory once on program startup or does it allocate stack memory on every function...
Results 1 to 25 of 162
Page 1 of 7 1 2 3 4