Are you kidding me? What problem is there to solve for me? I didn't provide the numbers!
I was kindly asking for someone to explain the mechanics of it! How do you compute the length of an LCS?
...
Type: Posts; User: stimpyzu
Are you kidding me? What problem is there to solve for me? I didn't provide the numbers!
I was kindly asking for someone to explain the mechanics of it! How do you compute the length of an LCS?
...
I had already looked at all those links that Google search gave for
LCS already (as well as for dynamic programming, etc, etc.) and I
had went through all my books AND I even looked at the C...
Hi everyone!
I'd like to know how to compute the length of an LCS (Longest Common Subsequence). I have the LCS-LENGTH(X,Y) code and it works fine, but I want to know how to fill a table by hand,...
SALEM I read the FAQ, it says to use fgets.... but isn't that in C? Is there a command in C++ I could use?
Thanks for the link it was quite informative!
Well I found my solution, I just pop_back the last line before I start manipulating my data...
while (!infile.eof())
{
infile.getline(file,30);
infile.ignore(0,'\n\n');...
If you mean
do
{
infile.getline(file,80);
vfn.push_back(file);
} while (!infile.eof());
I have an add filename function that saves the filenames to a text file like so:
outfile.open("database.txt", ios::app);
outfile << filename << endl;
outfile.close();
and retrieves the...
No, not if you mean the water taps, but you can warm your hot tub for 7:00 at the temperature you like.
:p it's a for my Data Security final (project), so I'm trying to be creative!!
Picture an automated home. This house can perform many functions such as turning on lights, appliances, and your A/C all from a remote location. You can hear your e-mail, the news, the weather, etc...
Could anyone tell me anything about S-Expressions in C++ and how I would go about using it with a binary search tree?
I appreciate any comments, thanks!
Thanks for the input, it is much appreciated but I've tried it that way, and I still get errors.
I couldn't agree with you more, that's what I would like to do, but I have to do this program...
Well, If this is what you mean:
public:
WordRecord(vector<string> &vs, LineRecord * & pLineRec);
private:
vector<string> vs;
Well actually, I've already tried it with
WordRecord::WordRecord(vector<string> &vs, string *p)
{
vectorString= vs;
*pLineRec = *p;
}
You'll have to excuse me, I'm quite tired, I've been at this a long time....
#include "WordRecord.h"
WordRecordIndex WordRecord::index = byLineRec;
That would make sense... but don't laugh, I'm new at classes :o
class WordRecord
{
public:
static WordRecordIndex index;
In WordRecord::WordRecord
Oops, my bad. I cut too much out.
LineRecord * pLineRec;
WordRecord * pWordRec;
vector<string> vs[80];
vs[i].push_back(line);
I was wondering how to declare a vector into a constructor. Can someone kindly tell me where I am going wrong?
class WordRecord
{
public:
WordRecord(vector<string> &vs, LineRecord * &...
Wow, first I want to say I am sorry if I sounded bitter. It was not my intention.
SALEM, that is what I have in my class. I was under the impression that if you declared the array like that,...
Can't anyone give me any advice?
I know I'm bumping up my post, but I'm not asking for anyone to write any code for me.
How the hell am I supposed to get better when I submit my stuff and get...
Hi everyone!
I would like to ask for some ideas for the following code. It works well in general, but I doesn't work all the time. I have just been working on it for so long that I am out of...
Well, I found it!! My ifstream infile wasn't in the right spot....
Thanks for taking the time to look at my post though! :)
Hi!
I was wondering why my code works in some cases and not in others. This code is part of a function call that loads information into a vector, then it goes back to a menu. I'm trying to check...
Now I'm being pulled appart!!!!!
Is it important to write comments or not?????
They help me out in my own code!!! I'm told it's good practice..... should I spend my time typing comments or...