carmelo wrote:
naturally i don't pretend that anyone make the whole project ... i was
just asking if there is someone that has the patience to help me
because maybe it's a stupid problem for people that know the c
language..
anyway.. if there is someone that want to help me i'll be grateful to
him... i need to implement a k-tree... i think that the best choice is
to use lists but i don't know well in what way.. suggestions??
Well, this is a slightly better post than your first attempt:
carmelo wrote:
hi! i have to write a school project in c but i don't know how
implement it... is there someone that can help me??
Emphasis on "slightly".
You should state a specific problem, and describe your
efforts to date. If you have made no effort whatsoever
towards an implementation, it is not likely that anyone
will show any interest in assisting. At the very minimum,
you should say something like:
here's what I have so far--it doesn't compile:
struct ktree {
void *p;
};
int
main(void)
{
struct ktree a;
return (EXIT_FAILURE);
}
This would elicit the response explaining that you should
look at the error generated by the compiler which indicates
that you failed to define EXIT_FAILURE and that you
should include <stdlib.h>. Also, you'll get some comments
to the effect that the members of the ktree structure don't
accurately reflect the object you are trying to model. In
addition, you'll get a boatload of responses pointing out
that you don't need and shouldn't include the parentheses
around the returned value. The thread will then degenerate
into a discussion of semantic details that you won't care
about, but you might glean something from it.
Try something. If you get stuck, ask for help with specifics.
--
Bill Pursell