On Wed, 2004-09-22 at 07:24, Paul Akkermans wrote:
> Hi group,
>
> I have constructed the following code:
> struct node
> { TreeElementType elt;
>struct node *left, *right;
> };
> typedef struct node Node;
>
> typedef Node *Tree;
>
> #include
> #include "tree.h"
>
> void WriteTreeSla
On Wednesday 22 September 2004 17:24,
[EMAIL PROTECTED] wrote:
> int main (){
> WriteTreeSlave("paul",0);
> }
> ---
>
>-- It is my goal
> I have constructed the following code:
> Can anybody help me?
You're on the wrong list. Try comp.lang.c.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
* Shao Zhang <[EMAIL PROTECTED]> writes:
> The code was originally written by someone else, and I had to modify it.
> It uses a whole bunch of libraries written in C. And I am too lazy to
> port it to C++. So I had to use both gcc and g++. But it is just a pain
> to keep the memory allocation cons
Noah L. Meyerhans [EMAIL PROTECTED] wrote:
> -BEGIN PGP SIGNED MESSAGE-
>
> On Tue, 15 Feb 2000, Shao Zhang wrote:
>
> > Eg. if I compile with this:
> > $ g++ -g -c misc.c
> > misc.c: In function `char * cash(double, int, int)':
> > misc.c:44: implicit declaration of function `int bracket
-BEGIN PGP SIGNED MESSAGE-
On Tue, 15 Feb 2000, Shao Zhang wrote:
> Eg. if I compile with this:
> $ g++ -g -c misc.c
> misc.c: In function `char * cash(double, int, int)':
> misc.c:44: implicit declaration of function `int bracket(...)'
> misc.c:45: implicit declaration of function `int c
Bryan Scaringe [EMAIL PROTECTED] wrote:
> It is my understandng that in order for C++ to "delete" a
> dynamically-allocated
> object, that object need to have been created via "new".
>
> That said, I'd like to see the code where you do the allocation.
You are right. the memory allocation is done
It is my understandng that in order for C++ to "delete" a dynamically-allocated
object, that object need to have been created via "new".
That said, I'd like to see the code where you do the allocation.
Also, you may need to type-cast the void pointer. The new compiler version
may be more picky a
The man page for TCSH shows how to check permissions within a TCSH script.
try searching for filetest.
On Tue, 16 Mar 1999, richard wrote:
>
>
> I know this is the wrong place to ask, so I've got two questions now. What is
> a good unix/C
> newsgroup? I think I'm gonna need some help. Now my
Quoting richard ([EMAIL PROTECTED]):
> I've got a perl script that checks the permissions and creates directories.
> Now I want to rewrite
> the script in C. I know nothing about checking permissions nor creating
> directories with C. I
> don't even know if it's possible, so if someone does know
> I've got a perl script that checks the permissions and creates
> directories. Now I want to rewrite the script in C. I know nothing
> about checking permissions nor creating directories with C. I don't
> even know if it's possible, so if someone does know how to do this or a
> place that might
>[EMAIL PROTECTED] (richard)
>
> I know this is the wrong place to ask, so I've got two questions
> now. What is a good unix/C newsgroup? I think I'm gonna need some
For general C, try comp.lang.c. It's probably the wrong place
for these questions, since they are UNIX specific.
comp.unix.programm
Try the comp.lang.c newsgroup for C questions.
For creating directories, try
#include
int mkdir(const char *path, mode_t mode);
For removing directories,
#include
int rmdir(const char *path);
Also see man 3 ...
opendir
closedir
telldir
13 matches
Mail list logo