--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E3^00029 Date: 03/30/97 From: JANI SAKSA Time: 09:16pm \/To: RICK BISCHOFF (Read 5 times) Subj: Re: Bit Fields -=> Propably Rick Bischoff wrote to All <=- Hello Rick! RB> Does anyone know how to declare a variable that holds only one bit of RB> information.. (You know only two values (0 or 1)) ??? That's easy but it will always take one byte of memory. just use normal char variable. When it's 0 then the bit is off and when it's 1 then bit is on (0=00000000 1=00000001 2=00000010 3=00000011...). RB> Thanks.. /* Sir Robin - Falling Star Productions ** ** http://www.cedunet.com/~jsaksa ......*/ ... I went to an optician who also does c++ - he sold me some NEW CLASSES! --- BBBS/2 v3.33 How-C * Origin: Cat-Box - 02-4841086 (2:222/120) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E3^00030 Date: 03/30/97 From: JERRY JANKURA Time: 03:13pm \/To: ALL (Read 5 times) Subj: Borland c++ builder Borland's C++ Builder has been out for a month and I've been waiting patiently for comments about it. But, none seem to be found. Has anyone taken to this language? If so, what have your experiences with it been? How good is the Visual interface, and how does it compare with the other interfaces such as OWL or MFC? Note that I'm not looking for flameware, but for some honest comparisons and opinions of the product. -- Jerry --- * OLXWin 1.00b * It's either country music, or nine cats being tortured --- InterEcho 1.19 * Origin: PC-Ohio PCBoard * Cleveland, OH * 216-381-3320 (1:157/200) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E3^00031 Date: 03/28/97 From: NIELS JONKER Time: 04:49pm \/To: DARIN MCBRIDE (Read 5 times) Subj: Re: Video NJ> //Screen[x+y*320] = color; NJ> Screen[x+(y<<6)+(y<<8)] = color; /* same as above but here the NJ> multiplication is replaced with NJ> shifts to make it faster */ DM> Are you SURE that two shift operations followed by an addition is DM> really faster than the hardware-optimized integer multiplication? DM> Perhaps on an 8086... but on an 80486? Probably not... a shift operation on a pentium takes 1 clockcycle where an integer multiplication takes 9 for 32bit registers and 11 for 16bit I roughly calculated the number of clockcycles for both calculations: x+(y<<6)+(y<<8) => 4 clockcycles x+y*320 => 11 (32bit), 13 (16bit) so using shifts is still the fastest way. I do not know if there are compilers who recognize this situation and optimize it in the fastest(or smallest) way, but I doubt it, so to be save I just use the shift. Niels... --- GEcho 1.11+ * Origin: Free sex on Softwareboard 0224-218587 {+} Reg.Only (2:280/112) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E3^00032 Date: 03/26/97 From: KEVIN CAMPBELL Time: 03:58pm \/To: TIKA CARR (Read 5 times) Subj: MS-DOS Env. > I suggest you read SNIPPETS ENVIRON.TXT file. That will give you more > info. Its kind of impossible to do, unless you're willing to back up > and rewrite the user's AUTOEXEC.BAT file to reflect the change and > have the user reboot. That's about the only way I can see it would > work. Hmmm... It's just that the command SET does this, so it must be acomplishable someway. I have a big section of a book on it, but it gets a bit heavy and goes onto things such as manualy editing dos memory blocks for each ECB... nasty I'll look out for the snippets thingy. Thanks - Kev --- FMail/386 1.02 * Origin: Mail shipped from Deimos Spaceport (2:259/17) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E3^00033 Date: 03/27/97 From: GEORGE WHITE Time: 08:37am \/To: KEVIN CAMPBELL (Read 5 times) Subj: MS-DOS Env. Hi Kevin, You asked Bob Stout: KC> > There's no reliable legal way to do it. For more information, NIPPETS KC> > contains a FAQ file which discusses this - see ENVIRON.TXT. KC>SNIPPETS? KC>Do you know where I can get ahold of this? In the UK it's certainly available on DoNoR/2 (the origin BBS) as SNIP9611.LZH. George * SLMR 2.1a * Desk: A very large wastebasket with drawers. --- Maximus/2 3.01 * Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E3^00034 Date: 03/31/97 From: HERMAN SCHONFELD Time: 09:11pm \/To: ALL (Read 5 times) Subj: DJGPP optimizations Does anyone know the best combination of DJGPP optmization directives to compile a real-time texture mapper? I currently use :- gcc -O3 -fexpensive-optimizations -fkeep-all-inlined-fuctions -fthread-loops -funroll-all-loops and manage to get an average of 364 FPS on my :- 486 DX2 66mhz 8m ram Trident 1m (16 bit) 256 cache Also, can someone give me the best directives to compile for a :- Pentium Pro Pentium 486 512 cache 486 256 cache And information would be greatly appreciated. ... I have a 9600 bps modem and 1.5 bps fingers! --- Ezycom V1.48g0 01fd016b * Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4100000 Date: 04/01/97 From: ANTON S. MAXIMENKO Time: 01:01am \/To: KURT KUZBA (Rcvd) (Read 6 times) Subj: Any thougth ? Best wishes, Kurt ! - ࠧ, ⨫ ⭮, Kurt Kuzba ⯨ᠫ Anton S. Maximenko: AS>> { AS>> char z[10]; AS>> gcvt(what,10,z); AS>> write(x,y,color,bk_color,z); AS>> }; AS>> All looks to be nice, but this function makes my program AS>> unstable, so, it will write string, but at the and of AS>> program OS/2 shows that "This program cannot continue..." AS>> What happenings ? AS>> PS. Sorry for my dirty english :( KK> Maybe you should make z[11] instead of z[10] for NUL KK> terminator to fit into your allocated space? :) KK> We aren't hiding. We are just catching some z's. ;) Thanks, I found my mistake. I must not create vector - only pointer, becouse if I makes gcvt(what,10,z) i will loose all 10 bytes of memory :) So, correct version : char * z; // simple the best. ...... I have not allocate bytes of memory for string becouse function allocates it itself :) Hiding in the grave Anton S. Maximenko --- GoldED/2 2.50+ * Origin: Night is so beautiful (we need her as we need Day (2:5020/535.29) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4100001 Date: 03/31/97 From: FRANK MASINGILL Time: 09:37pm \/To: SARAH NUNEZ (Read 5 times) Subj: Formatting floats I know you are much further along than I am in learning C++ but thought I'd share something that with all of the aftermarket books and tutorials I have was not easy to find. In order to get a correct format of a float I found that I had to use something called "setprecision" which I think is prototyped in iomanip.h. I don't know if there are any other ways of doing it or not. Most of the example programs simply let it go at formatting a dollar amount to something like $25.00003 or something like that which was horrible. I guess they figure the student ought to concentrate on the BIG stuff first but I am just made so that I like for things to be formatted correctly in output. Sincerely, Frank --- FMail/386 1.02 * Origin: Maybe in 5,000 years frankmas@juno.com (1:396/45.12) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4200000 Date: 03/31/97 From: THOMAS MAEDER Time: 06:31pm \/To: CHRIS DOWNS (Read 5 times) Subj: Streams CD> Most of the "disadvantages" to iostreams are implentation dependant CD> For example, iostream i/o takes more code space and takes more CD> execution time vs output. But there's no intrinsic reason CD> that _has_ to be! Have you been able to measure this? Sounds very strange to me; I expect streamio to be more efficient both for space and time. Thomas --- MM 1.0 #0113 I wear my sunglasses in honor of your shine. * Origin: McMeier & Son BBS (2:301/138) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4200001 Date: 03/31/97 From: ERIC RULLENS Time: 08:40pm \/To: ALL (Read 5 times) Subj: Borland c++ builder Jerry Jankura said: JJ> Borland's C++ Builder has been out for a month and I've been JJ> waiting patiently for comments about it. But, none seem to be JJ> found. Has anyone taken to this language? If so, what have JJ> your experiences with it been? How good is the Visual JJ> interface, and how does it compare with the other interfaces JJ> such as OWL or MFC? Note that I'm not looking for flameware, JJ> but for some honest comparisons and opinions of the product. JJ> -- Jerry I'm curious about Borland's C++ Builder too... There must be someone out there who knows more about it? Well... c ya for now Eric --- * Origin: Bingelradestraat 117 (2:285/264.72)