Forum: C++ Oct 9th, 2006 |
| Replies: 2 Views: 1,031 But then we can create foo1 classes outside of foo, which is NOT what I want to happen. I only want foo to use the overloaed << for foo1, and I want this function to be a private member function... |
Forum: C++ Oct 8th, 2006 |
| Replies: 2 Views: 1,031 I want to do something like this:
class foo
{
private:
class foo2
{
...
void Print (ostream & out)
.... |
Forum: C Dec 12th, 2005 |
| Replies: 2 Views: 3,003 Thanks, but that has nothing to do with my function. I've malloc'd the data for the node, the pointer is returned fine. That's not the problem. The problem is the segmentation fault at the end of the... |
Forum: C Dec 12th, 2005 |
| Replies: 2 Views: 3,003 Hello, I get the following seg fault error when I try to delete the last node of the list. Does anyone know why? My delete function and high level function are included below: The seg fault only... |
Forum: C++ Nov 29th, 2005 |
| Replies: 4 Views: 7,082 The purpose of malloc is dynamically, key word, dynamically allocate memory from the preprocessor for a DATA structure.
In this case hashNode or whatever is your data structure, so you would be... |
Forum: C Nov 29th, 2005 |
| Replies: 3 Views: 1,287 Thanks,
Yes the return value of the preprocesses was one issue. I've written all the code for this, but thanks for your input. I had to check a thousand things to make sure errors were avoided,... |
Forum: C Nov 27th, 2005 |
| Replies: 3 Views: 1,287 Using some debug lines, I have ALMOST completed the coding:
I'm basically stuck on why the following code will not return 1 when it finds the word. It does everything properly, comparing the... |
Forum: C Nov 27th, 2005 |
| Replies: 3 Views: 1,287 If you would be so kind to go to this url, where I have already posted my problem and give me some tips on this forum or on the one already posted:
... |