does c# have pointers !!
and if the answer is no ..
how can i implement the static/dynamic hashing?
does c# have pointers !!
and if the answer is no ..
how can i implement the static/dynamic hashing?
The answer is yes and yes and no.
Basically, every reference type in .NET is a pointer.
You can have explicit pointers in unmanaged code including a ton of complications that come with the full unmanaged package.
And no, to the user, nothing in C# is handled like a pointer. There is no dereferencing or an -> operator.
I don't really know what you mean with dynamic/static hashing, but you can implement it in C#. Maybe you can explain what you want to achieve.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
thanks for answers my questions ..
and what i mean by static and dynamic hashing is this:
statick-hashing
http://www.cs.sfu.ca/CC/354/zaiane/m...00000000000000
http://www.dis.uniroma1.it/~catarci/...3LT/sld003.htm
dynamic hashing(extensible hashing)
http://www.dis.uniroma1.it/~catarci/...3LT/sld005.htm
how can i implement those hashing technique in C# , because i need a pointer to point to the buckets
buckets = blocks
You use references to point to the buckets, in simple, standard C#. There's nothing special about hashing in this regard.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
how i can reference to point to the bucket ??
can you show me an example ?!
Code:Bucket[] buckets = new Bucket[numBuckets];
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Yeah gotta love C# for this particular ambiguity
we are one
Which one?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Its illustrious memory handling
we are one
so how can binary tree or binary search programmed in C# without using real pointers ?!!
C# has pointers. It's just that C# has nothing else that's probably a bit confusing. Every reference type in C# is what C++ would call a pointer. You just don't need to free the memory, because it's managed/garbage collected. And you don't need those pointer semantics/syntactics, because the compiler already knows if something is a pointer ( reference type ) or not ( value type ).
CObject* o = new CObject( "test" ); // perfectly valid C++
Object o = new Object( "test" ); // perfectly valid C#
Those two lines are exactly the same. An object is created dynamically.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
C# supports C++ type pointers. But it is called unsafe code. It is better to use .NET standard libs for those kind of operations OR you may go to MSDN for unsafe code.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C