473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

help with c project (2)

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??

Sep 13 '06 #1
6 1529
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??
The reaction you're getting is a result of your giving zero information
about your actual problem. Many of the people on this forum are working
professionals, professors, or students. If they took the time to read
your initial message, it was wasted time, because you asked some kind of
meta-question and didn't even try to describe the nature of your
problem. So if you got someone's attention who would have been
interested in helping, you lost it.

So now we finally know you need to do a "k-tree". Do you mean "k-ary"
tree? As for using "lists" to represent your nodes, I guess you can
call your structure a "list" in that it resembles a doubly-linked list
to hold "left,right" references.

What work have you done so far? Do you at least have a Binary tree
(special case of a k-ary tree) done? Is your assignment a more detailed
specification than "implement a k-tree?" What level of course is this
for? A programming introduction or a post-graduate algorithms analysis?
(Not that it really makes a difference I guess.)

I wish there was a newsgroup devoted to discrete maths and algorithms.
Sep 13 '06 #2
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

Sep 13 '06 #3
"Bill Pursell" writes:
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.
LOL! The life cycle of a thread on c.l.c.
Sep 13 '06 #4
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??
There's some tree C code here:
http://www.stanford.edu/~blp/avl/libavl.html/

--
pete
Sep 13 '06 #5
jmcgill wrote:
I wish there was a newsgroup devoted to discrete maths and algorithms.
comp.programming can handle some of those issues.

Sep 14 '06 #6
"Old Wolf" <ol*****@inspire.net.nzwrites:
jmcgill wrote:
>I wish there was a newsgroup devoted to discrete maths and algorithms.

comp.programming can handle some of those issues.
There's also a sci.math.num-analysis group for pure maths.

--
Andrew Poelstra <http://www.wpsoftware.net/projects>
To reach me by email, use `apoelstra' at the above domain.
"Do BOTH ends of the cable need to be plugged in?" -Anon.
Sep 14 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: PHPkemon | last post by:
Hi there, A few weeks ago I made a post and got an answer which seemed very logical. Here's part of the post: PHPkemon wrote: > I think I've figured out how to do the main things like...
1
by: dave | last post by:
I first started using HCW.exe to compile .rtf filew created with MS Word a couple of weeks ago. I used the file | new menu then selected New project in the dialog box and everything worked as...
4
by: Iain A. Mcleod | last post by:
Hi I'm stuck with the following schema validation problem in VS.NET 2003: I have two types of xml document and related schema: project and projectCollection. A projectcollection is just a set...
0
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
4
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
3
by: alan_coffman2004 | last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error: "Unable to open Web project 'MyProject'. The file path 'c:\inetpub\wwwroot\MyProject' does not correspond to the URL...
7
by: Tina | last post by:
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. ...
4
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
16
by: Harry Simpson | last post by:
I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS instead of the personal web server. Then I run in debug mode and it says I have to set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.