Search:

Type: Posts; User: nectodn

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,060

    My problem is that the exact text will not be...

    My problem is that the exact text will not be known at compile time. The text will be gleaned from a file once the program is running and is subject to change. I will not even know how many functions...
  2. Replies
    5
    Views
    1,060

    Unfortuanatly function objects wouldn't work as...

    Unfortuanatly function objects wouldn't work as the program I'm plugin into won't accept them (it crashes). Maybe I should try to explain with some example code.

    Example of my code


    void...
  3. Replies
    5
    Views
    1,060

    Binding a function argument

    Hi I have a problem with a plugin I am making. The program I am plugin into only allows me to use functions with no arguments, but I want to use the same function for an unknown(at compile time)...
  4. Replies
    2
    Views
    1,486

    You were right! I was accidently adding the...

    You were right! I was accidently adding the structures on the end of files1 instead of file2. Opps! I'll remember to read my code more throughly before posting next time:)
  5. Replies
    2
    Views
    1,486

    std::cout outputting in wrong order

    I have a vector of structures which contain filenames of type std::string. When I use std::cout to output these strings like so:


    for (iter=files1.begin(); iter != files1.end(); iter++)
    ...
  6. Replies
    9
    Views
    1,215

    Ahh. That was my mistake, it wasn't supposed to...

    Ahh. That was my mistake, it wasn't supposed to be a memory address. Not very good with pointers.

    Though if it was always pointing at a memory address how come the program consistently gave me...
  7. Replies
    9
    Views
    1,215

    My mistake again! I had just forgotten to put the...

    My mistake again! I had just forgotten to put the '&' in.
    Still doesn't explain my strange results in my original program.
  8. Replies
    9
    Views
    1,215

    sorry, shoud be: 0 = @ 1 = A NULL Doing...

    sorry, shoud be:

    0 = @
    1 = A
    NULL

    Doing what you suggest crashes my programming, not sure why. And I also can't work out why my program out puts:

    0 = A
    1 = B
  9. Replies
    9
    Views
    1,215

    I was expecting: 0 = H 1 = I NULL

    I was expecting:

    0 = H
    1 = I
    NULL
  10. Replies
    9
    Views
    1,215

    What is going on here?

    Can anyone tell me what is going on in this code:


    int main()
    {
    unsigned short shortint = 0x4041;
    unsigned char *output = (unsigned char *) shortint + NULL;
    for (int i=0; i<26;...
  11. Replies
    3
    Views
    952

    dynamic function calls

    I was wondering if it is possible to dynamically call a function at run-time without the program knowing what the function is or how many arguments or what type thae args are.
    (E.g.
    func (args);
    )
Results 1 to 11 of 11