Search:
Type: Posts; User: newbie30
Search:
Search took 0.03 seconds.
-
August 6th, 2009, 05:52 AM
Hi All;
Can some one please explain to me what the %5 formula is for the hashtable.
I am looking at a simple hastable example where the hashtable will contain link lists in it, but when he...
-
August 4th, 2009, 12:24 PM
thats what i thought but then i saw other examples and got confused, for example:
On another website they have this:
72 & 184 = 8
why is 8 return and not a 1 or 0;
Also if you wanted to...
-
August 4th, 2009, 11:40 AM
HI;
Yeah i mean bitwise operators and to see if the last bit is a 1 or 0. Sorry long day but thanks for getting back so quickly
Thanks
-
August 4th, 2009, 11:29 AM
Hi all;
Doing alot of reading on binary operators but getting quiet confused.
if i want to find out if the last byte of number 5 is a 1 or 0 how do i go about it?
I know i need to use the &...
-
June 30th, 2009, 10:27 AM
Whats a hashtable and how do you search within a hashtable?
What are its uses?
Thanks
-
June 30th, 2009, 08:40 AM
Sorry ment bit.
Thanks a mill
-
June 30th, 2009, 08:21 AM
Hi all;
I know the theory behind the bitwise operators but i never used them before so just looking for a quick example of the btiwise operators.
If you want to want to find out what the last...
-
June 19th, 2009, 06:02 AM
Whats the difference between an inline function and a macro?
Thanks
-
June 18th, 2009, 11:44 AM
Yeah my variables names are brutal, sorry about that. I understand where your coming from now.
-
June 18th, 2009, 11:38 AM
Hi Guys;
I am still not sure what you mean about position, do you mean find the 6th elem of the list and switch it ? Surely that would be kinda the same thing i did except that i did it on value...
-
June 18th, 2009, 11:30 AM
Why must it be equal?
Considering the list could be A->B->C->D and the value of swap could be B I need to go thru the list till swap value matches the list value?
-
June 18th, 2009, 11:12 AM
So basically something like this:
void swap(node *swap)
{
node *current = head;
node *temp;
node *temp2;
while(swap!=current)
-
June 18th, 2009, 10:25 AM
If you a link list with no prev pointer, how do you swap two nodes around?
For example if we had a list like this:
A->B->C->D and wanted to switch B & C around, I can get as far as this:
...
-
June 18th, 2009, 05:55 AM
Whats the alternative to using next->next, prev->prev and prev->next so i wont run into trouble at beginning of lists and at the end of the lists.
As regarding swaping two nodes,, i just...
-
June 17th, 2009, 10:22 AM
How would you do it on position? And what do you mean by position?
Thanks
-
June 17th, 2009, 09:46 AM
Sorry looks like i resolve it, was missing current->prev->next=temp;
Is there a better way of writing this function, ie less code?
Thanks
-
June 17th, 2009, 09:41 AM
HI;
I am tying to swap 2 elements of a link list where the value of the node matches the value i pass thru and swaps with the next element. But somehow it doesnt work.
Here is the code
...
-
June 11th, 2009, 11:21 AM
Its ok i sorted it, i forgot to new the node.
Sorry for wasting your time
Thanks
-
June 11th, 2009, 11:16 AM
So are you saying i should do something like this:
node *s = t.search(5);
;
-
June 11th, 2009, 10:30 AM
I have this function in my class:
node* btree::search(int key)
{
return search(key, root);
}
-
-
Could you show us an example of the constructor initialisation.
For example if i have a class like this:
class Temp {
int x;
public:
Temp() {x=4};
-
So my whole problem was that i was returning by value!
Stupid mistake, wont forget that in a hurry. Thanks a mill people
-
Why what you have will call the copy constructor? Is it not the same as
BankAccount S;
S=T;
Also i figure out why my assignment operator calls the copy construct, basically if define...
-
So would I be right in say that if i had the following code and have written my copy constructor and then my assignment operator that the assignment function be called first and then the copy...
|
Click Here to Expand Forum to Full Width
|