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...
Type: Posts; User: Osiris990
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...
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
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...
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...
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[] = {
...
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...
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...
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...
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....
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...
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:
...
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. =/
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...
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...
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...
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...
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...
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......
I narrowed it down to a problematic function:
m_pD3DDevice->CreateImageSurface(256, 256, (D3DFORMAT) m_iD3DFormat, &m_pD3DSurface)
It assigns a memory value of 00000000 to m_pD3DSurface and...
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...
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.
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...
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...