Re: General tree assignment in C



On Jan 28, 1:12 pm, "Ivica" <prljavi_blu...@xxxxxxxxxxx> wrote:
Create program for defining hierarchical file-system structure in which node
can be file or subdirectory with limitation that file can only be a leaf.

<...>

It's hard to find any examples for general trees in C, just binary trees are
around and that makes me a huge problem. :-\ I would really appreciate any
kind of help. Thanks in advance.

Why does it have to be C?.

trees are classic examples where an OOP style works well. You really
need a language that supports runtime polymorphism in the language,
e.g Java, C++, C#

C is very poor for this use (its possible but ugly) which is I would
guess why there are few examples.

regards
Andy Little


.



Relevant Pages

  • Re: General tree assignment in C
    ... can be file or subdirectory with limitation that file can only be a leaf.. ... trees are classic examples where an OOP style works well. ... need a language that supports runtime polymorphism in the language, ...
    (comp.programming)
  • Re: The Promise of Forth
    ... out routine solutions. ... This is a limitation for Forth. ... If Forth is a good language for "thinking people" I don't see why ... This is not a technical problem, and as much as you'd love to find a technical problem and solve it, there's not a technical solution. ...
    (comp.lang.forth)
  • Re: C# equivalent of some SML code
    ... techniques that the SML code relies upon. ... C# is a strongly, statically typed language. ... rely on dynamic techniques, then yes...C# isn't going to be appropriate ... This is a limitation of .NET's type system that C# inherited. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Fortran is not viable
    ... It seems to me that if every implementation has a restriction, then the language has that restriction. ... Most languages do not put such specific requirements on the data types, ... Most compilers targeting 32 bit processors limit array subscripts to 32 bits, though there is no reason to consider it a language limitation. ...
    (comp.lang.pl1)
  • Re: throwing exception from constructor
    ... required to be overused in order to hack around a limitation in the ... The limitation is rather on the .NET finalizer side ... language definition, nothing to do with .NET or otherwise, in the ... Andrei Alexdandrescu doing "hacks and crutchs" ??? ...
    (microsoft.public.dotnet.languages.csharp)