Search:

Type: Posts; User: cableguy414

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,329

    Search text files for matching strings

    I need some help.

    Here's what I would like to do. I'd like to import a test file with a list of search terms. Then I'd like to have the program search another text file to see if the terms...
  2. Ok, I got it working. First, thank you...

    Ok, I got it working.

    First, thank you everyone for your help and advice. I was not resending the user input for x, y, and the radius with each call.

    Here's what I ended up doing.

    In the...
  3. I knew that each time the class is called, it...

    I knew that each time the class is called, it makes a new implementation of it, that's why I though the static keyword would work. I though it would keep the x and y variables in memory so they can...
  4. Ok, I removed all of the "statics" and I removed...

    Ok, I removed all of the "statics" and I removed the =0 from the default constructors.

    And it is still returning zero when I call the getX and getY functions, but only when they're called from the...
  5. Like I said, I'm a c++ newbie. In the main...

    Like I said, I'm a c++ newbie.

    In the main program, I have user input set x and y. I thought that x and y would not change, so that when I called the "get" functions from the derived class, it...
  6. I did test it by changing the values of my...

    I did test it by changing the values of my default constructor to something other than 0 and the new numbers then showed up. Something isn't right, I just don't know what or where.
  7. I tried to keep the code I'm posting as limited...

    I tried to keep the code I'm posting as limited as possible. I'm posting the base class and one of the derived classed as defined in the header files, the default constructor for the base class and...
  8. Problem with functions in inherited classes

    Here is what I'm trying to do.

    I have 3 classes:

    base
    |
    derived1
    |
    derived2
Results 1 to 8 of 8