--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500001 Date: 11/02/97 From: ALEX WALKER Time: 10:02am \/To: ANTHONY TIBBS (Read 2 times) Subj: Re: C/C++ Compiler Wanted -=> Quoting Anthony Tibbs to All <=- AT> @MSGID: 1:163/215.38 522a4fbe AT> If anyone has either Borland C++ 4.5x+ or Watcom 10.6, and they'd like AT> to sell it, please let me know! I'm in desperate need of one of these AT> two compilers! (Watcom 11.0 is too buggy for me to bother with it.) I just saw BC++ ver 5.0 in a little computer store, only the CD (no hardcopy at all) for only $55.00. I'm only guessing that ver. 6 is about to come out, but still it's a great price. C yaz ... A feature is a bug with seniority. --- * Origin: Community Access Courtenay, BC (604) 338-4597 (1:3412/1) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500002 Date: 11/03/97 From: ALEX WALKER Time: 02:46pm \/To: ALL (Read 2 times) Subj: WTD Coin algorithm ideas Hi All I'm a student studying C++ programming. I've got an assignment question where I don't even have an idea how to attack the problem. The program is to input a value (like $1. $2. $5..) and spit out a table showing all the different cominations of coins that could be used to make up that value. So for $0.10 the table would look like: 10 = 10 10 = 5 + 5 10 = 5 + 1 + 1 + 1 + 1 + 1 10 = 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 At first I tried to do a series of for loops, for ( five times ) for ( coin < money ) for ( coin < money ) for ( coin < money ) { for ( coin < money ) { cout << "+ 25 "; } cout << " + 10"; } cout << " + 5"; } cout << "+ 1"; } } But this just gave me a table of; 10 + 10 + 10... 5 + 5 + 5.. 1 + 1 + 1 + 1... I've looked at Permutations and combinations math wise but this method just gives me the number of permutations, not what they are. I'm not asking for code, just an idea of how to attack the question. Thanks for any ideas. ... - InterNet E-Mail: awalker@spruce.nic.bc.ca -or- alex.walker@cgate.com --- * Origin: Community Access Courtenay, BC (604) 338-4597 (1:3412/1) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500003 Date: 11/04/97 From: DARRELL HNIZDOR Time: 11:40am \/To: KURT KUZBA (Read 2 times) Subj: thanks Thanks for your reply. Can you tell me if there is a simple way to put a string into a variable other than strcpy? I know this doesn't work: char a[]= "this string"; char b[20]; b=a; --- Maximus 3.01 * Origin: Friendship Corner Albany, Tx 1-915-762-2745 (1:392/15) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500004 Date: 11/04/97 From: DARRELL HNIZDOR Time: 11:46am \/To: BERK OZBOZKURT (Read 2 times) Subj: Printer Thanks for the reply. I will add your message to the others who have been so gracious with there time to help a c++ rookie. Now I have confidence I will be able to print --- Maximus 3.01 * Origin: Friendship Corner Albany, Tx 1-915-762-2745 (1:392/15) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500005 Date: 11/03/97 From: CHRISTIAN FELDE Time: 09:52pm \/To: JERRY COFFIN (Read 2 times) Subj: Help me... >On (26 Oct 97) Christian Felde wrote to All... CF>> if ((ageThisYear >= 20) && (ageThisYear < 40)) CF>> cout << "a person waiting for life to begin!!); >It looks like you missed the close quote mark from the end of this. It >should look like: > cout << "a person waiting for life to begin!!"; Jepp.. I see it :) Thanx anyway... __ __ __ __ _ _ /_ // / // ///\// email: cfelde@online.no _ _ __ __//_ /_//_//_/// homepage: http://home.sol.no/~cfelde/ --- BBBS/L v3.33 How * Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500006 Date: 11/03/97 From: CHRISTIAN FELDE Time: 09:52pm \/To: THOMAS MAEDER (Read 2 times) Subj: Help me... CF>> But after fixing that, I got some new error! :( >Because a ';' is missing after CF>> cout << "Please enter your year of birth: " Yes.. I know.. Thanx anyway.. __ __ __ __ _ _ /_ // / // ///\// email: cfelde@online.no _ _ __ __//_ /_//_//_/// homepage: http://home.sol.no/~cfelde/ --- BBBS/L v3.33 How * Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500007 Date: 11/03/97 From: CHRISTIAN FELDE Time: 10:35pm \/To: BENJAMIN L MCGEE (Read 2 times) Subj: HELP ME... > On 10-26-97 Christian Felde wrote to All... CF>> if ((ageThisYear >= 20) && (ageThisYear < 40)) CF>> cout << "a person waiting for life to begin!!); CF>> ....unterminated string or character constant---^ > Hope that helps... Yes, well.. I have already got'n a lot of help.. but thanx anyway... __ __ __ __ _ _ /_ // / // ///\// email: cfelde@online.no _ _ __ __//_ /_//_//_/// homepage: http://home.sol.no/~cfelde/ --- BBBS/L v3.33 How * Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500008 Date: 11/03/97 From: CHRISTIAN FELDE Time: 10:35pm \/To: MICHAEL RATHBURN (Read 2 times) Subj: Help me... >Hi Christian Felde, hope you are having a nice day >26-Oct-97 11:13:42, Christian Felde wrote to All > Subject: Help me... CF>> Hi all.. CF>> I've just started reading a C++ book, and I'm using Linux to CF>> compille the source CF>> I try to compille this source: >/* >somefun.cpp >Ian M Wilks >*/ >Couldn't help noticing the name because Ian M Wilks is the author of >Instant C++ Programming and also my night school tutor on the very same >subject. Interestingly enough we use his book at night school . CF>> ...and I don't understad any thing! CF>> Help me! Thanx... > His code works fine on mine and ill help if I can and if I can't maybe > I'll just ask Ian :-) Yes... I use that book. A wery nice book too. Easy to read, and wery help full... Hmm.. well.. It work's just fine now, after all the syntax errors are removed. __ __ __ __ _ _ /_ // / // ///\// email: cfelde@online.no _ _ __ __//_ /_//_//_/// homepage: http://home.sol.no/~cfelde/ --- BBBS/L v3.33 How * Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500009 Date: 11/03/97 From: CHRISTIAN FELDE Time: 10:35pm \/To: ALEX WALKER (Read 2 times) Subj: How to rewrite to screen? > Hi All > I'd like to know how you would write and rewrite to screen > in the same location a number, (or anything really). For > example, often with a file search program on BBSs while a > search is proceding some little wheel thing goes around in > the same screen prosition like the arms of a clock. Or > like an LED display. But you can't seem to do that with > the usual cout calls. How's it done? Any example C++ code > I could see? I think you can use \r just like you use \n... IUSWIM? It makes you start at the same line again... I have used it i C, but not in C++ __ __ __ __ _ _ /_ // / // ///\// email: cfelde@online.no _ _ __ __//_ /_//_//_/// homepage: http://home.sol.no/~cfelde/ --- BBBS/L v3.33 How * Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EF500010 Date: 10/31/97 From: JARI LAAKSONEN Time: 12:17am \/To: ROSE (Read 2 times) Subj: Java R> Ok, in J++, how exactly do I get a simple program to determine R> which key has been pressed WITHOUT having to press the enter key each R> time? java.awt.Component.keyDown() (JDK 1.0.2) or java.awt.Component.processKeyEvent() (JDK 1.1) // Albert email: jla@to.icl.fi ... Become a programmer and never see the world. --- GoldED/2 2.50+ * Origin: Albert's Point/2 in Finland, Europe (2:221/360.20)