Search:

Type: Posts; User: Osiris990

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    6,330

    Sorry for the brevity of my initial post. I was...

    Sorry for the brevity of my initial post. I was in a bit of a rush when I wrote it. It makes me sound as if I'm looking for you to do the searching for me, which isn't the case.


    That's kind of...
  2. Replies
    6
    Views
    6,330

    Fuzzy String Matching Algorithm

    I've looked everywhere for a good explanation of an algorithm for fuzzy string matching. Anyone have a link to a good tutorial on it?

    Thanks,
    Shane
  3. Replies
    2
    Views
    37,450

    error: braces around scalar initializer...

    The following snippet encompasses lines 4-56 in my code:


    record tmpKnowledgeBase[] = {
    {"REPETITION T1**"},
    LINK_SPECIAL,
    {
    "Why are you repeating yourself?",
    "I heard you the...
  4. Replies
    5
    Views
    1,186

    Argh, forget it then, I'll just stick to an array...

    Argh, forget it then, I'll just stick to an array instead of a vector. x_x

    On another note, how would one go about determining if an element in an array of strings was empty?



    void...
  5. Replies
    5
    Views
    1,186

    Vectors in Arrays

    Is there any way to pass a vector in the creation in an array besides creating a vector outside of the array and then passing the variable? Sorta like...



    std::vector<std::string> array[] = {
    ...
  6. Replies
    14
    Views
    13,602

    Well, I decided to take everyone's advice (even...

    Well, I decided to take everyone's advice (even if it was advice at gunpoint =P) and try again with vectors, and I don't know what I was doing wrong before, but it works just fine now. Not sure where...
  7. Replies
    14
    Views
    13,602

    Forget the size issue. Let's say for ease's sake...

    Forget the size issue. Let's say for ease's sake that I just put the size in hard-coded everywhere. Let's get past that entirely.

    What I need to know is how to in essence "reinitialize" the array...
  8. Replies
    14
    Views
    13,602

    Fairly sure. I actually tried it at one point,...

    Fairly sure. I actually tried it at one point, but even when I went through and changed everything, it just caused too many problems due to how my program is currently structured.

    As for the size...
  9. Replies
    14
    Views
    13,602

    What I meant by "not prepared to fix" was that I...

    What I meant by "not prepared to fix" was that I would have to entirely rewrite the code, which is not something I really want to do... Not that I couldn't fix the problems.


    That's what I meant....
  10. Replies
    14
    Views
    13,602

    I have, but it messed things up in ways I'm not...

    I have, but it messed things up in ways I'm not really prepared to fix. And I can't use it in the constructor because in record, there's a string entry that needs to have a variable put in at run...
  11. Replies
    14
    Views
    13,602

    Overwriting Array with New Array

    I'm working with a program at the moment that needs to have an array of undefined length (and of type 'record', which is a struct) that is initialized in a separate function, sorta like so:


    ...
  12. Replies
    8
    Views
    2,356

    Anyone have any clue what that error is all...

    Anyone have any clue what that error is all about? I can't figure it out, and all the searching I've done has turned up zilch. =/
  13. Replies
    8
    Views
    2,356

    Well, compiling on my system, when I add the...

    Well, compiling on my system, when I add the switch to the linker to include the symbols from the main program, I get the following error.


    bash-3.1$ ./build.sh...
  14. Replies
    19
    Views
    3,214

    How much system memory do you have? That could be...

    How much system memory do you have? That could be the issue. Because from what I know about C (which admittedly is not a ton, but it is enough to get me by), when it allocates an array, it creates a...
  15. Replies
    8
    Views
    2,356

    Hmm. I think I get where you're going with this....

    Hmm. I think I get where you're going with this. I'll toy around with the linker a bit and see if I can't get it to link in the symbols from the main program.

    Also, hope you feel well soon! The...
  16. Replies
    8
    Views
    2,356

    I understand what needs to be done, but I'm left...

    I understand what needs to be done, but I'm left with a question still... How can I get that to fit into what I'm trying to accomplish? I mean... It seems highly impractical to expect every function...
  17. Replies
    8
    Views
    2,356

    Well, because this is more of a programming issue...

    Well, because this is more of a programming issue than a Linux issue (or at least I think it is), and while that is a Linux forum with a SECTION for programming, this is programming forum with a...
  18. Replies
    8
    Views
    2,356

    Shared Library Not Executing Function

    I know this is kinda lazy, but this was a long post and I don't really feel like rewriting it and taking an hour, so if you could bear with me and read......
  19. I narrowed it down to a problematic function: ...

    I narrowed it down to a problematic function:


    m_pD3DDevice-&gt;CreateImageSurface(256, 256, (D3DFORMAT) m_iD3DFormat, &m_pD3DSurface)

    It assigns a memory value of 00000000 to m_pD3DSurface and...
  20. The first one got it, thanks. =) But now I'm...

    The first one got it, thanks. =) But now I'm getting a runtime error... =/


    Unhandled exception at 0x6d9ee684 in game_prog_2.exe: 0xC0000005: Access violation reading location 0x00000000.

    And...
  21. Oh, right. I forgot to tell which functions are...

    Oh, right. I forgot to tell which functions are generating the error. lol It's sin() and cos()... Which is what makes it so damn confusing.
  22. Replies
    10
    Views
    1,291

    You're actually wrong there. The function main()...

    You're actually wrong there. The function main() itself does not return results in decimal points... It returns a 1. You're perhaps thinking that what you output to the user (which might be a decimal...
  23. C2668 - Ambiguous Call to Overloaded Function

    I have a problem with my code, and I need some help... I'm doing some testing with DirectX8 and I'm trying to use sin() and cos() to assist me(yes, I have math.h included), but when I do, I get a...
Results 1 to 23 of 23