Search:

Type: Posts; User: stimpyzu

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,976

    Are you kidding me? What problem is there to...

    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?
    ...
  2. Replies
    4
    Views
    2,976

    I had already looked at all those links that...

    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...
  3. Replies
    4
    Views
    2,976

    Longest Common Subsequence

    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,...
  4. Replies
    11
    Views
    2,584

    SALEM I read the FAQ, it says to use fgets.......

    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!
  5. Replies
    11
    Views
    2,584

    Well I found my solution, I just pop_back the...

    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');...
  6. Replies
    11
    Views
    2,584

    If you mean do { ...

    If you mean



    do
    {
    infile.getline(file,80);
    vfn.push_back(file);

    } while (!infile.eof());
  7. Replies
    11
    Views
    2,584

    reading text files

    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...
  8. Replies
    4
    Views
    3,860

    No, not if you mean the water taps, but you can...

    No, not if you mean the water taps, but you can warm your hot tub for 7:00 at the temperature you like.
  9. Replies
    4
    Views
    3,860

    :p it's a for my Data Security final (project),...

    :p it's a for my Data Security final (project), so I'm trying to be creative!!
  10. Replies
    4
    Views
    3,860

    Security on automated home

    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...
  11. Thread: S-Expression

    by stimpyzu
    Replies
    1
    Views
    1,630

    S-Expression

    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!
  12. Replies
    16
    Views
    3,008

    Thanks for the input, it is much appreciated but...

    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...
  13. Replies
    16
    Views
    3,008

    Well, If this is what you mean: public: ...

    Well, If this is what you mean:


    public:

    WordRecord(vector<string> &vs, LineRecord * & pLineRec);

    private:

    vector<string> vs;
  14. Replies
    16
    Views
    3,008

    Well actually, I've already tried it with ...

    Well actually, I've already tried it with



    WordRecord::WordRecord(vector<string> &vs, string *p)
    {
    vectorString= vs;
    *pLineRec = *p;
    }
  15. Replies
    16
    Views
    3,008

    You'll have to excuse me, I'm quite tired, I've...

    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;
  16. Replies
    16
    Views
    3,008

    That would make sense... but don't laugh, I'm new...

    That would make sense... but don't laugh, I'm new at classes :o



    class WordRecord
    {
    public:

    static WordRecordIndex index;
  17. Replies
    16
    Views
    3,008

    In WordRecord::WordRecord

    In WordRecord::WordRecord
  18. Replies
    16
    Views
    3,008

    Oops, my bad. I cut too much out. ...

    Oops, my bad. I cut too much out.



    LineRecord * pLineRec;
    WordRecord * pWordRec;

    vector<string> vs[80];
    vs[i].push_back(line);
  19. Replies
    16
    Views
    3,008

    Classe constructor and Vector question

    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 * &...
  20. Replies
    3
    Views
    3,191

    Wow, first I want to say I am sorry if I sounded...

    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,...
  21. Replies
    3
    Views
    3,191

    Can't anyone give me any advice? I know I'm...

    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...
  22. Replies
    3
    Views
    3,191

    Circular array list

    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...
  23. Thread: Loading file

    by stimpyzu
    Replies
    1
    Views
    908

    Well, I found it!! My ifstream infile wasn't in...

    Well, I found it!! My ifstream infile wasn't in the right spot....

    Thanks for taking the time to look at my post though! :)
  24. Thread: Loading file

    by stimpyzu
    Replies
    1
    Views
    908

    Loading file

    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...
  25. Now I'm being pulled appart!!!!! Is it...

    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...
Results 1 to 25 of 83
Page 1 of 4 1 2 3 4