Re: Linked List & Dynamic Memory Allocation





one-trick-pony wrote:

This is purely an excercise....all identifiers are dummy which I made
on the fly. Should've chosen some meaningful names. It is a C based
program. No C++ so no new operator :o) I could have written this in C+
+ but I am doing this excercise for two reasons

1. learn legacy C code

For the most part c++ is an extension of c. (There are a few subtle differences that I can't remember now.) If you know c++ you know c.

2. data structures

I take it you have the structure stuff down ok but it looks like you want to handle them on the stack and the heap. At that, you are extending the exercise to a linked list. So, where are you since Jonathan's and my last post?

Best, Dan.

.


Loading