wow im an idiot, thanks
Type: Posts; User: Armatura
wow im an idiot, thanks
I am currently writing code for a class where I need to overload the << and >> operators....now when I do so it gives me errors that the private components I'm trying to access within the class are...
I know there is a parameter or something I can put in front of a line of code to have it only run once for the life of the function and I cannot figure out what it is...I need to just declare a bool...
I'm currently working on a linked list program where I use nodes inside of a header file for another class. I'm using this syntax in the header file where the node is defined as a struct under the...
That was it, it was writing on memory not allocated, thanks =)
Arm
I did some debugging and narrowed it down to the loop I have in my copy constructor to copy over each owner in the array (in Store)...but I am still unsure why this doesnt work, it seems logical to...
Here's the function, when called, causes the core dump:
bool StoreList::add(Store h)
{
cout << "in here" <<endl;
Store temp;
temp.name="void";
First off let me say, I'm being forced to compile in Unix here but here goes:
I'm currently testing out some classes i've made, one class (StoreList) which creates a list of another class...