--------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00015 Date: 04/07/98 From: JASEN BETTS Time: 07:52pm \/To: HERMAN SCHONFELD (Read 1 times) Subj: Best sort algorithm [2/4] HS> /* This program incorporates the QUICK SORT, BUBBLE SORT, FAST BUBBLE HS> SORT, INSERTION SORT and SHELL SORT for comparing how each performs on HS> a random 1000 item string list */ your prog don't work propper! (I haven't tried to figure out why) I stuck this test function in and QUICKSORT and SHELLSORT don't work propperly. int chkdata(void){ int x; for(x=0;x TOPIC: 239 C LANGUAGE Ref: F4C00016 Date: 04/06/98 From: MARK HOOVER Time: 04:43pm \/To: SIMON AVERY (Read 1 times) Subj: Cryptic Programming "Bother," said Pooh to Simon Avery about Cryptic Programming. SA>Also known as Obfuscated C? SA>(My favourite, from the 1986 awards...) And this code does what? Nothing personal, just don't want to run it w/o knowing what to expect first....:) SA> extern int SA> errno SA> ;char SA> grrr SA> ;main( r, SA> argv, argc ) int argc , SA> r ; char *argv[];{int P( ); SA>#define x int i, j,cc[4];printf(" choo choo\n" ) ; SA>x ;if (P( ! i ) | cc[ ! j ] SA>& P(j )>2 ? j : i ){* argv[i++ SA>+!-i] ; for (i= 0;; i++ SA>); _exit(argv[argc- 2 / cc[1*argc]|-1<<4 ] ) SA> ;printf("%d",P(""));}} P ( a ) char a ; { a ; SA> while( a > " B " /* - by E ricM arsh SA>all- */); } CMPQwk 1.42 1960 Mirage Net Tip #5: Log in as ALL and receive more mail. --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00017 Date: 04/06/98 From: MARK HOOVER Time: 04:43pm \/To: SIMON AVERY (Read 1 times) Subj: Cryptic Programming "Bother," said Pooh to Simon Avery about Cryptic Programming. SA>Also known as Obfuscated C? SA>(My favourite, from the 1986 awards...) Seems I'll be forever doomed never to be able to run this stuff...:( The list below was just the errors....there were about two times as many warnings. Error NONAME00.CPP 13: Extra parameter in call to P() in function main() Error NONAME00.CPP 14: Extra parameter in call to P() in function main() Error NONAME00.CPP 16: Cannot convert 'char *' to 'int' in function main() Error NONAME00.CPP 16: Type mismatch in parameter '__status' in call to '_exit(int)' in function main() Error NONAME00.CPP 16: Extra parameter in call to P() in function main() Error NONAME00.CPP 17: Cannot convert 'char' to 'char *' in function P() CMPQwk 1.42 1960 Mirage Net Lie #19: This is a hobbyist's network. --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00018 Date: 04/06/98 From: MARK HOOVER Time: 04:43pm \/To: BILL BIRRELL (Read 1 times) Subj: obfuscated C "Bother," said Pooh to Bill Birrell about obfuscated C. BB> There ya go:- BB>SHAPIRO.C - 1987 winner Yeah! I actually got this one to work. Was beginning to wonder if peoperly compiling was part of the requirements.....:) CMPQwk 1.42 1960 Mirage Net Lie #18: Your mail is sent under a week ywhe --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00019 Date: 04/06/98 From: MARK HOOVER Time: 04:43pm \/To: ROGER SCUDDER (Read 1 times) Subj: -getch() "Bother," said Pooh to Roger Scudder about -getch(). RS>->> key = -getch( ); /* gets value and apply the mask */ RS>DVH> I tried that, and I made my own function that returns true if a RS>DVH> keyress was entended and false otherwise, and then passes the RS>DVH> key as a passthrough variable. RS> So, you do see why the '-' was used then? He might, but I definitely don't and am completely baffled. Would you please mind explaining it to me? RS>->> DVH> I have all the known C compilers for OS/2 and DOS. Have a Dos compiler that'll compile OS/2? Preferably from GNU or somebody like that as I just bought Borland 5.0 Developers Edition and don't want to plop down more money.... CMPQwk 1.42 1960 Mirage Net: We will add your biological and technical s --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00020 Date: 04/06/98 From: MARK HOOVER Time: 04:43pm \/To: TOM TORFS (Read 1 times) Subj: Learning C++ "Bother," said Pooh to Tom Torfs about Learning C++. TT> TT>Welcome in the C_Echo. However, we discuss the C language in here, TT>not the C++ language. There is a specific echo for discussing C++ TT>called C_PLUSPLUS. I'm sure the people over there will be delighted TT>to help you out. You will probably even find some of us over there TT>also. TT>However, if it's really C you wish to learn, then we'll be glad to TT>help you out. TT> Hey no offence and not trying to bunk your moderating efforts, but you might want to add a line about getting the sysop to request it. Most sysops (if not asked) only pull one of them in assumption that C/C++ are the same thing. The user then posts in the only echo allowed to them....:) Just a thought....:) CMPQwk 1.42 1960 "Columbus, I have sighted Mirage Net" "Let's get out of --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00021 Date: 04/07/98 From: PETER LOUWEN Time: 06:24pm \/To: CAREY BLOODWORTH (Read 1 times) Subj: Re: DDJ'S CD-ROM -=> Quoting Carey Bloodworth to All <=- CB> The articles were May 91 through October 92. I don't need the CB> published source, just the article text. Anyway, if you've got it, CB> please let me know. I don't have the CD, but I do have those DDJ issues. Peter ... Cannot find REALITY.SYS. Universe halted. --- EBO-BBS Diemen - NL * Origin: EBO-BBS Diemen (http://home.worldonline.nl/~biginski) (2:280/901) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00022 Date: 04/07/98 From: RYAN DA SILVA Time: 07:03pm \/To: ROGER SCUDDER (Read 1 times) Subj: Learning C++ > Hello Ryan. [...CONTINUED FROM PREVIOUS] Here's a really quick and > dirty function to find a persons phone number from their name or just a > part of their name. It shows you a few more things about C. The look up > function is followed by a main function. All C programs need at least > one function, main. If you paste all the parts I have given you into a > .c file and compile it, you will be able to see how all this code {lots of code/writing cut out} Hello Roger, Thanks A LOT for that code! It's very useful! ;) I didn't know that C was so complicated! What difference is there between C and C++? Thanks A LOT, Ryan da Silva Chow!, Ryan da Silva ... And God said, "Windows 95," and the whole world crashed... --- * Origin: Information Exchange Systems (1:250/511) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00023 Date: 04/07/98 From: RYAN DA SILVA Time: 07:04pm \/To: HERMAN SCHONFELD (Read 1 times) Subj: Learning C++ > HS> Get "Teach yourself C in 21 days", and "Teach yourself C++ in 21 > HS> days". > RS>Where could I get that? A local library? or would they carry a book > RS> like hat? > They are are actual books. ... Computers all wait at the same speed! Oh.. I see.. I've heard of a C book from a guy named Charles Petzold What do you think about that book (if you've heard of it) Chow!, Ryan da Silva Chow!, Ryan da Silva ... "Windows Performance", on the next "In Search Of". --- * Origin: Information Exchange Systems (1:250/511) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F4C00024 Date: 04/07/98 From: RYAN DA SILVA Time: 07:06pm \/To: KURT KUZBA (Read 1 times) Subj: Learning C++ > RD> currently trying to learn C++. > You check the C++ echo, then! :) In the meantime, C code! /*_|_| > PUTSTRUC.C _|_|_| Example of using structures with data files. _|_|_| > No warrantee or guarantee is given or implied. _|_|_| Released PUBLIC > DOMAIN by Kurt Kuzba. (9/25/96)*/ #include #include > #include #include typedef struct { char f[16], {LOTS of code cut out } Hi Kurt, Thanks A LOT for that bit of code! ;) It'll hopefully be very useful for me when I am writing programs. I can use it as a reference on how to do some stuff! ;) Thanks Kindley, Chow!, Ryan da Silva ... "Relax! I'm only here for your hamster!" -- Death --- * Origin: Information Exchange Systems (1:250/511)