![]() |
![]() |
|
|
|
|||||||
|
You are currently viewing our boards as a guest which means you can view posts, but can't make any of your own.
Registration is easy and absolutely free, so why not join the longest-running Battlefield community on the web! |
| Off-topic Anything not related to the Battlefield series. Well, almost... |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Join Date: Oct 2002
Location: England
Posts: 1,681
![]() |
Jesus, any1 do java? Im used to using pointers. Im trying to do a linked list, but I cant get my head around it.
Here is my code to return the number of items in the list. Code:
public int cardinality()
{
int count = 0;
word temp = this.FirstWord;
do
{
count++;
temp = temp.returnNext();
}while (temp!=null);
return count;
};
Code:
temp = temp.returnNext(); ![]() Im used to using C, where u can use pointers for everything. Does any1 know a way of doing it? Morat, i think u program, help me. |
|
|
|
![]() |
| Thread Tools | |
|
|