Search:

Type: Posts; User: NixPhoeni

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,389

    Clarifications...

    Yes, ocv is an iterator to the correct location in an std::list. I'm sure it's reading into the list because I checked on itemNumber, inRoom, and inArea while debugging and they were the values in...
  2. Replies
    4
    Views
    1,389

    Assigning std::strings result in error

    The following code can be found in one of my functions:

    // ocv is the beginning of an std::list
    // fin is an ifstream open to a file with data in it
    // n, itemNumber, inRoom, and inArea are of...
  3. Replies
    3
    Views
    1,581

    Zen's suggestion works!

    Thank you zen! You are brilliant! It now compiles and works.
    As for ozgulker, I don't quite understand your question. I didn't explain what kind of program I am making. I know that using three...
  4. Replies
    3
    Views
    1,581

    STL Linked List of class within class

    I have a class Character in my program and I want to have three linked lists of Characters as members of that class.

    class Character
    {
    ...
    std::list <Character> one;
    std::list <Character>...
  5. Yes!

    Shmulik you were right on the button! I thought people had forgotten about this thread. I had actually tried what you had suggested after inspecting the error message more carefully. I had to...
  6. Here's the code...

    Ok, found the site that lists the requirements if anyone's interested:
    http://www.msoe.edu/eecs/cese/resources/stl/objreq.htm

    :confused:
    And the offending code that produced all of the error...
  7. To clear things up...

    I just wanted someone to post the requirements for using a user-defined class in a STL class so I could fix my problem. I'm pretty positive I'm missing something, I just don't know what it is. If...
  8. Requirements for using a user-defined class in STL

    I am trying to use a class that I created with std::list, but VC++ gives me errors such as:
    error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class...
  9. Replies
    6
    Views
    12,358

    0xdddddddd != NULL?

    I have a user-defined class Character, of which fighting is a member of type Character. Within the destructor, I have the following code:

    Character *dp = new Character;
    while(fighting!=NULL) //...
  10. Replies
    3
    Views
    1,248

    not quite...

    Sorry, I wasn't clear. In this code

    if(name=="") return;
    else file = name;

    both name and file are strings. Is there some way to check if name is NULL?
Results 1 to 10 of 10