Is there a system call to check whether a specified directory is a decendent to another directory? I'm moving around a directory using chdir and i need to make sure i stay within the realms of a particular sub tree. Any ideas?
Cheers
Paul
here is the code i've written
#include "tree.h"
BTREE new_node(void)
{
return(malloc(sizeof(NODE)));
}
BTREE init_node(DATA d1, BTREE p1, BTREE p2)
{
BTREE t;
t = new_node();
t -> d = d1;
t -> left = p1;
t -> right = p2;
return t;
}
BTREE...
How do you create a binary search tree with more than one data element in it? I can create a tree with single data items (ints or chars) but soon as i come to add more variables it breaks. Any suggestions?
Paul
Do you go to Aberystwyth uni? I do and i remeber doing that worksheet last year. Declare r1 as a variable at the begining of the class then instansiate it wherever you want, you'll always have access to it.
I need to create a gantt chart program and i want to use a graph adt to store the data, i understand the concepts of a graph but dont know how to go about immplementing one in Java. Can anyone help?????
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.