--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00034 Date: 05/03/97 From: KEVIN CAMPBELL Time: 06:11pm \/To: JIM ROBIN (Read 3 times) Subj: BBS > Hi All, > Does anyone know of a BBS that has loads of Borland C++ source code > examples? Well CompuCrap is a glorified BBS, and it has a lot of Borland stuff on it. There should also be some stuff on the Borland web site, if they have one. sk your sysop to get some stuff for you. I don't know any specific BBS's, but you could try the Glasgow or Livingston Hub's, they've both got a lot of CD's with source code on ''em. Have Fun - Kev Kevin Campbell Sysop of Deimos BBS E-Mail: Sysop@Deimos.unmanned.co.uk --- FMail/386 1.02 * Origin: Mail shipped from Deimos Spaceport (2:259/17) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00035 Date: 05/03/97 From: BENJAMIN L MCGEE Time: 10:04pm \/To: CRAIG A MCKAY (Read 3 times) Subj: OOP BLM> The best source of useful information to me so far is this BLM> echo, followed closely by Glen McCluskey's "C++ Newsletter". CAM> Well, I have a very comprehensive set of lecture notes, brilliantly CAM> typed out in Low-ASCII and I'm going to make them available for CAM> FREQing. They combine a little OOAD theory with C++ and are just CAM> the thing for the beginner. Please notify ALL when you make that available for FREQ, I'll have to ask my sysop if he would be so kind. thanx By the way, I think it was you that recommended the book "Object- Oriented Analysis and Design with Applications" by Grady Booch. I just picked it up today, and it seems well worth the $60.00 I paid for it. thanx BLM> I have never seen a clear definition of object oriented BLM> programming. CAM> Somebody in this echo posted a brilliant description of CAM> exactly what OOD is....see the end of this message. Any little bit of information helps greatly, thanks again. CAM> Let me give you an example. Let's say we wanted to model CAM> everything in a horse racing. BLM> That's all well and good if you want to race horses, but what BLM> if you wanted to extract functions from a C program. CAM> "Normally", you would start with a spec, and isolate the CAM> components. What you are talking about is taking existing C CAM> code and Seeplusplusifying it. :) Actually, No. What I want is a small utility that will do for C modules what PKUNZIP does for ZIP archives. Take all the procedures (files) within the module (archive) and send them as output to their own file. Why? I really have no use for such a utility, but it's the first thing that came to mind and should be a pretty simple program. CAM> Well, I can give you a simple example of that too. Thanks anyway, but most of that was over my head so I'll ignore it for now. Maybe come back to it later when I have a greater understanding of C++ and object oriented design. Now, according to your advice above ("start with a spec, and isolate the components") to get my program off the ground I should do this... System Specifications: 1. Take input from C module files. 2. Output to individual files all procedures found on input. Now that I have my system's specs I should NOT do this... 1. Create input function 2. Create search function 3. Create output function But I SHOULD do this... 1. Create InputFile object of // the InputFile object knows that it is a C module 2. Create OutputFile object // the OutputFile object knows that it is a C procedure Is that all correct? Once again thank you for all your help. What I think I have learned so far... 1. A program can be written in C++ without using object oriented design. 2. A program can be written using object oriented design without using an object oriented language. 3. Numbered lists really look cool. 4. Object oriented design is concerned with the actual physical objects that a program interacts with. I.E. disk files, the screen, the keyboard, etc... *Welfare and TV are today's bread and circuses. blm --- FLAME v1.1 * Origin: Purgatoire BBS, 719-846-0140, Trinidad, CO, V.34 (1:15/7) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00036 Date: 04/29/97 From: JAVIER KOHEN Time: 04:00pm \/To: QUINTIN OLIVER (Read 3 times) Subj: Doom like games... Javier Kohen to Oliver. Ensign: At the stardate 22-Apr-97, Quintin Oliver established a sub-space link to ALL refering to Doom like games.... QO> All idea's and brain stroms will be happly recieved... Stop making DOOM like games, please!!! DOOM is fine, there are some others good, too (ie: Dark Forces), but the rest are bad clones... InterNet: jkohen@tough.com * FidoNet: 4:900/748.3 * Sk-NetWork: 200:201/201.2 -=[ PGP keyID 3423EAA9 ]=- ... Microsoft, MS, MS-DOS, Windows and Bug are trademarks of Microsoft Corporation. --- Terminate 4.00/Pro * Origin: The King of The Ring BBS +54-1-OFF-LINE TLD 0 - 7 4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00037 Date: 05/04/97 From: CLIFF RHODES Time: 02:26pm \/To: JIM ROBIN (Read 3 times) Subj: Throw of dice --> Jim Robin wrote to All <-- JR>I've got this friend who is constructing a dice game using Visual JR>C++ where one of the required elements is to simulate the throwing JR>of a dice. JR>To cut a long story short does anyone know of an algorithm that can JR>generate numbers between a lower bound value and an upper bound JR>value - in the case of the dice example 1 - 6. #include #include class Di { private: int currentState; public: Di() { srand((unsigned int) time(NULL)); currentState = 1; } int throw() { currentState = (rand() % 6) + 1; return currentState; } int getState() { return currentState; } }; Cliff Rhodes cliff.rhodes@juge.com X CMPQwk 1.42 1692 X"Great joys weep, great sorrows laugh." - Joseph Roux --- Maximus/2 3.01 * Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00038 Date: 05/04/97 From: PAUL WANKADIA Time: 02:34pm \/To: QUINTIN OLIVER (Read 3 times) Subj: Err On 28 Apr 97, Quintin Oliver wrote to Paul Wankadia -- QO> What the heck is DJGPP i'm kinda getting sick of techno babble... PW> It's a compiler. QO> Thank's Paul, where might I get it? Go to 'http://www.delorie.com/' and look for it. Alternatively, have a look through the directories of your favourite SimTel mirror. --- PPoint 2.00 * Origin: Junyer's Workshop (3:640/772.3) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00039 Date: 05/04/97 From: BOB STOUT Time: 08:45pm \/To: JIM ROBIN (Read 3 times) Subj: Throw of dice Jim... Look up ROLLDICE.C in SNIPPETS. Although it's in C, I also have a C++ implementation saved here somewhere, although I can't fiind it right this minute. --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00040 Date: 05/04/97 From: BOB STOUT Time: 08:46pm \/To: CHRISTOPHER BUTLER (Read 3 times) Subj: Keyboard lock LEDs On , Christopher Butler (2:257/135@fidonet) wrote: > MEM 0040h:0097h - KEYBOARD STATUS BYTE 2 > So, in theory (I'll test it later), it should be possible by changing > bits 0, 1 and 2 of that location... Christopher... No need for theory, it's in SNIPPETS - see KEYLOCKS.C (prototypes in SNPKBIO.H). Tested for portability with all major DOS comiplers. --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00041 Date: 05/04/97 From: ANTHONY TIBBS Time: 12:23pm \/To: KURT KUZBA (Read 3 times) Subj: Random access files On May 03 11:16, 1997, Kurt Kuzba of 1:154/750 wrote: AT>> KK> char* FromName[36]; AT>> KK> char* ToName[36]; AT>> KK> char* Subject[72]; AT>> "char *FromName [36];" ? This won't/shouldn't even AT>> compile correctly. You *should* be using either of the AT>> following two methods: at>>..... KK> Thank you. KK> You are, of course, right. I quoted it blindly and overlooked KK> what may have been the real problem. KK> I should have looked further into it. Actually, I was wrong. What you did was perfectly legal, but for your purposes, it is not what you wanted. Anthony --- TriED 0.10 alpha 1 * Origin: World of Power BBS (1:163/545.15) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00042 Date: 05/03/97 From: ASHER DENSMORE-LYNN Time: 09:21pm \/To: ALL (Read 3 times) Subj: * Crossposted from: C -- International (Fido) "Win95, save vs. virus... Save made! No infection." "Win95, save vs. lightning... Save made! No damage from storm." "Win95, save vs. OS/2 Install... Uh-oh..." Due to the recent demise of DCP, I haven't exactly gotten mail. ): < Quit cheering, moderators. d: (: > It's been (mostly) phoenixed, though, and we're back... The upshot is, I've missed the last -- oh, five days of messages? So if anyone sent me anything -really- important, would you resend? Thanks a bundle. (: Asher Densmore-Lynn --- ~ TLX v4.10 ~ That will teach exactly what to whom? --- FEcho1.46.1+/Bink2.60OS2/TG3.02 * Origin: -= The Dyslexic Chicken Parade =- {817-473-2390} (1:130/222) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00043 Date: 05/04/97 From: FRANK MASINGILL Time: 11:31pm \/To: DANIEL MCGREGOR (Read 3 times) Subj: Compiler error You said you were familiar with Hyman's book. I wonder if you can tell me why the following is giving me a specific error when compiling using Turbo C++ Version 3.0: void main() {