Re: compiling

1999-04-11 Thread Brett Thompson
Hello again! :) Okay, well, I thought I was going to go back to my homework and forget about this, but of course I had to look up how to make a static library for our friend Darius here :) All right, what you want to do is compile each .c that you want in the library into an object file, .o

Re: compiling

1999-04-11 Thread Brett Thompson
Hello! On Sun, 11 Apr 1999, Darius Blaszijk wrote: > Recently I came across a package witch I want to use in my programs. The > package consists of a header file (interface) and a *.c source code file > (implementation). How can I use these files in my application? What you'll want to do probab

Re: trees and such? (Thank You!!!)

1999-02-18 Thread Brett Thompson!
Hi there everybody!! I just wanted to say "Thank You" to everyone who replied to my question; all the answers were very useful indeed, and the URLs were quite excellent. You all really amaze me... I was extremely pleased!! Thank you sooo very much!!! :) :) If it's helpful to anybody else, he

trees and such?

1999-02-16 Thread Brett Thompson!
Hi there everybody!! I was just wondering if anybody knew of a good document or tutorial or something of that sort on binary trees and such... I'm going to be taking an AP Computer test this Saturday, and looking at a sample test, there were binary trees and linked lists that sort of thing all o

Re: cout in Linux's C

1999-01-11 Thread Brett Thompson
Hi there! On Mon, 11 Jan 1999, James wrote: > On Tue, 12 Jan 1999 [EMAIL PROTECTED] wrote: > > # I'm new to C and Linux. I notice that Turbo C has a 'cout' and 'cin' > # command. What i sthe equivalent that I can use in Linux's C? Glynn's right, these are C++, not C... There's no reason you c

Re: C program

1999-01-03 Thread Brett Thompson
Hi there! On Sun, 3 Jan 1999, Catalin Bucur wrote: > Hello and Happy New Year, Nod. Grin, same to you :) > The program is simple, so what is the problem? I don't have the right memcpy.c > file, or it's an error on 40 line of memcpy.c? The problem seems to be the fact that buf is a uninitalize

Re: bits

1999-01-02 Thread Brett Thompson
Hi everyone!! Usually bits are maniuplated with bitwise operators... I recall CircleMUD doing this quite nicely and you can set up some nice macros to make it easy... For example, I think (I could be wrong), to set a bit you use the bitwise OR, like this: foo |= (1<<5); This'll set the fift

Re: Mount point

1999-01-01 Thread Brett Thompson
Hrm, I say, you might want to read /proc/mounts 'Tis straight from the kernel :) Happy New Year's everybody, BTW :) -Brett

Re: ! = -1?

1998-12-26 Thread Brett Thompson
Hi there! erm, I don't know if this will lessen any confusion at all, but from what I've read 0 is FALSE and everything else is true... -1 is on Intel all binary ones I think? I dunno... But it might be better (this is what W. R. Stevens the Great does, if I recall correctly) to say something

Re: reading a remote html file

1998-11-14 Thread Brett Thompson!
Hi there! Of *course* this is "cost effective" in C!! You just have to do a tiny bit of sockets... C should be faster than an interpreted language, although most of the delay for this sort of thing is probably due to the speed of the network... Attached is a rather simple example that I wrote re

Re: Compiling code for linux

1998-09-09 Thread Brett Thompson
Hello there! Just a real quick captured couple of commands and output that might help out, perhaps: cow:~/c$ cat >> foo.cc #include main() { puts("Hello!"); } (I hit control-D here for EOF) (Yes, I know it's not C++, but I'm better at C :) cow:~/c$ g++ foo.cc (GCC or GNU C++ default

Re: Malloc()

1998-08-06 Thread Brett Thompson
Hi there James (and everybody else too)! Well, I'll give you what tiny shreds of knowledge I have on linked lists, probably somebody else can give you *much* better advice... Anyway, mybe I'll be of some use, so here goes: On Thu, 6 Aug 1998, James wrote: > i'm writing a program that use

Re: Passing by reference

1998-06-15 Thread Brett Thompson
Why, hello there! :) This is just a really quick little answer, as I'm sure if you wait somebody else much more clever than I will probably give a better response... it just might suffice though, anyway, here goes. :) Note that C++ does something called passing by reference (it's sort of an a