Re: c question

2004-09-22 Thread Eric Gaumer
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

Re: c question

2004-09-22 Thread David Baron
On Wednesday 22 September 2004 17:24, [EMAIL PROTECTED] wrote: > int main (){ >  WriteTreeSlave("paul",0); >  } > --- > >-- It is my goal

Re: c question

2004-09-22 Thread Andrew Schulman
> 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]

Re: C++ question

2000-02-16 Thread Colin Marquardt
* 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

Re: C++ question

2000-02-16 Thread Shao Zhang
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

Re: C++ question

2000-02-16 Thread Noah L. Meyerhans
-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

Re: C++ question

2000-02-15 Thread Shao Zhang
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

RE: C++ question

2000-02-15 Thread Bryan Scaringe
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

Re: C question

1999-03-25 Thread John Galt
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

Re: C question

1999-03-25 Thread David Wright
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

Re: C question

1999-03-25 Thread E.L. Meijer \(Eric\)
> 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

Re: C question

1999-03-24 Thread Ole J. Tetlie
>[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

Re: C question

1999-03-24 Thread Richard Harran
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