![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#41 |
|
Programmer
|
Ok thanks again for the help. If I'm ever getting annoying just tell me and I'll make myself scarce!
Ok so what I've done now is I've got rid of the list search functions, the insert data functions I have kept and amended as suggested by the dark and I felt I knew what I was doing as I changed them - basically, originally, as in the zip file code, I was flinging the whole damn isa table around all over the place, assigning it in memory over and over left right and centre everytime I passed it to a function. Which obviously is very confusing to follow. Now, the whole table is in a fixed location in memory, and I'm passing around pointers which tell functions where to access that memory, right?... Well, I can now at least access the 2nd and 3rd elements of the list that *isa[13] points to (that's the correct way of expressing that right?!!!), without going round in circles. I'm going to have another go at this tomorrow as it's gone 2am here and must get up early to "acquire" the new lost episode so thanks again for the help, will let you know how I get on! |
|
|
|
|
|
#42 |
|
Programmer
Join Date: Feb 2006
Posts: 36
Rep Power: 0
![]() |
Resources
http://cslibrary.stanford.edu/
Some resources, more and less related to this thread. I think they can be of help for you deanosrs. Pointers and Memory ============== Binky Pointer Video picture from video A silly but memorable 3 minute animated video demonstrating the basic structure, techniques, and pitfalls of using pointers. There are separate versions of the video for C, Java, C++, Pascal, and Ada. There is also a more traditional companion text (below) that goes with the video, and a brief history of how the video was made. Pointer Basics The companion text for the Binky video. Presents the same concepts and examples as the video, and includes study questions with solutions. Code is presented in C, Java, C++ and Pascal. Pointers and Memory A 31 page explanation of everything you ever wanted to know about pointers and memory. Can be used as an introduction, or as review for people who mostly understand pointers. Mostly uses C, with some discussion of C++ and Java. The early sections introduce basic pointer concepts, while the later sections discuss more advanced topics such as reference pointers and dynamic arrays. Lists and Trees ========== Linked List Basics A 26 page introduction to the techniques and code for building linked lists in C. Includes basic examples and sample problems with solutions. Provides a basic understanding of linked lists and pointer code. Linked List Problems A quick review of linked list basics followed by 18 linked list problems with solutions. The problems range from beginner, to intermediate, to advanced -- an excellent source of pointer algorithm problems. Binary Trees A 27 page introduction to binary trees. Introduces the basic concepts of binary trees, and then works through a series of practice problems with solution code in C/C++ and Java. Binary trees have an elegant recursive structure, so they make a good introduction to recursive pointer algorithms. The Great Tree List Recursion Problem One of the neatest pointer/recursion problems you will ever see. This is an advanced problem that uses linked lists, binary trees, and recursion. Includes solution code in Java and C. Languages ======== Essential Perl A quick 23 page introduction to the main features of the Perl language. Handy as an introduction or a quick reference. Essential C A relatively quick, 45 page discussion of most of the practical aspects of programming in C. Explains types, variables, operators, functions, control constructs, arrays, pointers, strings, array/pointer trickery, and the standard library functions. The coverage is complete, but quick, so it is most appropriate for someone with some programming experience. (revised 4/2003) Unix ==== Unix Programming Tools A 16 page introduction to the most common Unix tools and their usage in the compile-link-debug process. Introduces gcc, make, gdb, emacs, and the shell. There should be enough information here to allow someone with a little Unix experience to build and debug. |
|
|
|
|
|
#43 |
|
Programmer
|
Just to let you all know got it working fine now, thanks so much for the help and linked resources - always find it difficult searching for stuff specifically for "c" because all the stuff for c++ and any other language with a 'c' in it tends to come up as well!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|