Search:

Type: Posts; User: black_spot1984

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    859

    Dynamically Bind dang you! :)

    I am working on a chess program. I have a base class called Piece and then other classes like Pawn, Rook, etc... Problem is that I can't get them to do dynamic binding. Here's the code that needs...
  2. Replies
    6
    Views
    1,641

    For those who are curious, what I was doing wrong...

    For those who are curious, what I was doing wrong was in the way I was including the two files. It worked when I got them both into the file in the right place.
  3. Replies
    6
    Views
    1,641

    Thanks for the reply. I changed my code so it...

    Thanks for the reply. I changed my code so it looks like:


    bool ci_equal(char ch1, char ch2)
    {
    return toupper((unsigned char)ch1) == toupper((unsigned char)ch2);
    }

    size_t...
  4. Replies
    6
    Views
    1,641

    std::search isn't working!

    I'm trying to do a case insensitive comparison on two strings. I found this piece of code online but since I've never used std::search before, I don't know how to make the predicate part work. ...
  5. static declaration creates linker error

    When I run the code below with the private LinkedList declared without the static qualifier, it compiles and runs exactly as I expect. As soon as I add the static declaration, I get linker errors...
  6. Replies
    2
    Views
    1,282

    If anyone is curious, I fixed the problem. I was...

    If anyone is curious, I fixed the problem. I was missing the (...) around the regex. I hate dumb mistakes.
  7. Replies
    2
    Views
    1,282

    I don't know why that was copied over incorrectly...

    I don't know why that was copied over incorrectly by the way. In the while statement, where I do boost::regex_constants::icase it really is correct. That's not the problem.
  8. Replies
    2
    Views
    1,282

    Regex problem

    I'm trying to strip some simple HTML tags out of a randomly selected piece of test HTML code. I'm trying to use:


    boost::match_results<std::string::const_iterator> what;
    ...
  9. Replies
    5
    Views
    1,483

    Sorry to bother everyone, I just figured out my...

    Sorry to bother everyone, I just figured out my mistake! Thanks for looking.
  10. Replies
    5
    Views
    1,483

    Okay, since no one has responded, I will include...

    Okay, since no one has responded, I will include the entire output of make test. It is:


    g++ -c -o obj/webCrawler.o -I utils/include -I inc src/webCrawler.cpp
    g++ -c -o obj/stopWord.o -I...
  11. Replies
    5
    Views
    1,483

    And I'm trying to run make test. Take a look? ...

    And I'm trying to run make test. Take a look? Give some suggestions?
  12. Replies
    5
    Views
    1,483

    Linker error

    I have been chasing this bug all night! When I go to link my code it gives me the error:



    It is called from here:


    int main(int argc, char* argv[])
    {
    LinkedList<string>::Test(cout);
  13. Replies
    6
    Views
    3,532

    Okay, I'm back again. I moved everything over to...

    Okay, I'm back again. I moved everything over to the .h file and that made things a lot easier. I'm still using class, I will change that soon. But my next question is about the test() function. ...
  14. Replies
    6
    Views
    3,532

    templates

    When I try:


    void Iterator<T>::nextBucket()
    {
    delete listIterator;
    while(tableIndex<tableSize && table[tableIndex]->GetSize())
    tableIndex++;
    if(tableIndex<tableSize)...
  15. Replies
    5
    Views
    4,398

    Is it possible that this works on one compiler...

    Is it possible that this works on one compiler and not another? He is the complete compiler output:


    1>------ Build started: Project: LinkedListTest, Configuration: Debug Win32 ------...
  16. Replies
    5
    Views
    4,398

    Please help? I really don't understand.

    Please help? I really don't understand.
  17. Replies
    5
    Views
    4,398

    stringstream problem

    I'm trying to write a string into my stringstream but my compiler is coming up with a whole list of errors. Here's the code:


    //Dustin Nicholes
    //CS 240
    //Web crawler driver class

    #include...
  18. Replies
    3
    Views
    2,042

    My apologies. A bien tot!

    My apologies. A bien tot!
  19. Replies
    3
    Views
    2,042

    If it helps, here is one of several errors issued...

    If it helps, here is one of several errors issued by the compiler


    driver.cpp(35) : error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const...
  20. Replies
    3
    Views
    2,042

    stringstream problem

    I'm trying to insert a string into my stringstream but I'm getting errors. Any thoughts?


    //Dustin Nicholes
    //CS 240
    //LinkedList driver class

    #include "stopWord.h"
    #include "URL.h"...
  21. Replies
    3
    Views
    3,685

    Nobody can help me? Ah... crap. :(

    Nobody can help me?

    Ah... crap. :(
  22. Replies
    3
    Views
    3,685

    template and friend class

    I hope that it is obvious what I am trying to do below. I want my Linked List nodes to be both templates and a friend class with my Linked List class. My compiler tells me:


    error C2989:...
  23. Replies
    9
    Views
    1,977

    Thanks for the help everyone!

    Thanks for the help everyone!
  24. Replies
    9
    Views
    1,977

    Wow, now I feel really dumb. Someone wanna give...

    Wow, now I feel really dumb. Someone wanna give me a crash course in smart pointers? That's the first time I've even heard of them.
  25. Replies
    9
    Views
    1,977

    Now on that code I am getting a seg fault. My...

    Now on that code I am getting a seg fault. My debug comes back with:



    Program received signal SIGSEGV, Segmentation fault.
    0x0806779d in BST::deleteAll (this=0xbff1e6a8, current=0x568b000f)...
Results 1 to 25 of 40
Page 1 of 2 1 2