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...
Type: Posts; User: NixPhoeni
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...
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...
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...
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>...
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...
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...
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...
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...
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) //...
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?