--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4X00009 Date: 04/27/97 From: KURT KUZBA Time: 09:52pm \/To: KRIS O'SHEA (Read 4 times) Subj: DOS commands KO> Does anyone know how you can use DOS commands such as KO> "COPY" and "RENAME" in C/C++ programs. KO> I remember doing it once before, using a special keyword KO> but I've lost the source code for it. It's something like: KO> "" KO> I am using Borland C++ 4.51. ko>.... You may use the ANSI standard system() function. system(command_string); > ] Cold pizza is Nature's most perfect food.................... --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4X00010 Date: 04/27/97 From: BALOG PAL Time: 07:12am \/To: CAMERON CLARK (Read 4 times) Subj: OOP Hi, Cameron Clark! On 23 Apr 97 00:05:01 you wrote to Balog Pal CC> Structs don't have auto executed constructors/destructors that are CC> called all the way down/and up the inheritence chain, do they? Yes they do. You often don't see that as a usual struct's ctor is empty. So it behaves as an empty inline function. But as soon as you declare a virtual function to a struct, the ctor vill be showing. You can see the copy ctor in work if you assign struct instances to each other. The copy ctor is generated automatically by the compiler if you did not supply one. CC> Do struct have inheritence and polymophic capabilities? CC> Late binding? etc. etc. I see you don't believe me. :) Try it. It's just like a synonim to `class' with different default restrictions. All the stuff you can use within class you can place into a struct, those you write above and all the others. Paul ... del wages.* del salery.* del money.* --- OS/2 Warp * Origin: The FlintStones' Cave in BedRock (2:371/20) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4X00011 Date: 04/27/97 From: DANIEL MCGREGOR Time: 06:20pm \/To: ANTHONY TIBBS (Read 4 times) Subj: DJGPP OPTIMIZATIONS 2/3 Hello Anthony Tibbs! I just thought I'd drop in on your conversation :) 27-Apr-97 10:23:17, Anthony Tibbs pointlessly wrote to Daniel McGregor They rambled on fou HOURS about: DJGPP OPTIMIZATIONS 2/3 AT> On Apr 26 15:50, 1997, Daniel McGregor of 1:140/237.2 wrote: AT> Oh.. Never even thought of those little fruits.. I dunno, but the name AT> sure doesn't suit the speed. 1.8MHz is not power, if you ask me. But, AT> I guess when they were "in", that would be considered power 1.8mhz is worse than any computer I've seen. Including Macs and even 8086's(4.77mhz) But... you'll never know... :) > This message was brought to you by -=> Daniel McGregor (Who else? :) <=- The Dragons Cave 2am - 5am Central standard time. --- Terminate 4.00/Pro * Origin: The Dragons Cave -- 2am - 5am CST (1:140/237.2) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4X00012 Date: 04/27/97 From: DANIEL MCGREGOR Time: 06:23pm \/To: ANTHONY TIBBS (Read 4 times) Subj: Newbie Hello Anthony Tibbs! I just thought I'd drop in on your conversation :) 27-Apr-97 10:25:46, Anthony Tibbs pointlessly wrote to Daniel McGregor They rambled on fou HOURS about: Newbie AT> I believe you *can* get it for a few bucks cheaper in the "student" AT> version, if you can prove that you are learning to use it from an AT> educational institution (collage, unv., etc). If you're lucky, the AT> dealer will give it to you if you give him verbal reasons, but it is AT> more likely that he'd need to see some registration of some sort. Ahhh! well... this can be arranged, I know sooo many students at the University of Saskatchewan :) > This message was brought to you by -=> Daniel McGregor (Who else? :) <=- The Dragons Cave 2am - 5am Central standard time. --- Terminate 4.00/Pro * Origin: The Dragons Cave -- 2am - 5am CST (1:140/237.2) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4Y00000 Date: 04/27/97 From: THOMAS MAEDER Time: 07:21pm \/To: CRAIG A MCKAY (Read 4 times) Subj: OOP CM> (C + OOP == C++) // originally had (C++ == C + OOP) CM> // wouldn't be right... would it? Neither is right; the result of the comparison is unspecified because we don't know which side of the comparison operator is evaluated first - in principle both may be evaluated at the same time. Thomas --- MM 1.0 #0113 Nostalgia isn't what it used to be. * Origin: McMeier & Son BBS (2:301/138) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4Y00001 Date: 04/27/97 From: THOMAS MAEDER Time: 07:22pm \/To: JOSHUA BOEHME (Read 4 times) Subj: Pointer Arrays JB> void battle(int id[]) JB> { JB> int num = sizeof(id) / sizeof(int); // A variable number of objects This is wrong. id is passed to battle() as a pointer to its first element, so sizeof id == sizeof(int *) Either you can use a collection class (e.g. the vector template of the Standard C++ Library) or pass id's length as a second parameter. Thomas --- MM 1.0 #0113 Nothing is so smiple that it can't get screwed up. * Origin: McMeier & Son BBS (2:301/138) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4Y00002 Date: 04/27/97 From: THOMAS MAEDER Time: 07:24pm \/To: KEVIN CAMPBELL (Read 4 times) Subj: self-destruct KC> That's what I'm talking about. There's no rules that say new() canno KC> termination function if it fails to allocate the memory. One of the KC> purposes of overloading new() is to provide virtual mem, which would KC> disk access for goodness sake! Ok. The original poster asked about a way to prevent an object from being created based on reasons not related to memory management. Overloading oeprator new() is the wrong solution for this. Thomas --- MM 1.0 #0113 A judge is a lawyer who once knew a governor. * Origin: McMeier & Son BBS (2:301/138) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4Y00003 Date: 04/23/97 From: MARAT AFANASYEV Time: 08:48pm \/To: ALL (Read 4 times) Subj: gcc+iostream classes question Hi, All! Please, help me! I have the following problem: when I try to link so-called full-UNIX emulation exe using _emx09c_ _ld_ can't find any referencies to methods of iostream family classes. Usual error message looks like main.cpp:168 (main.o): Undefined symbol ostream::operator<< referenced from text segment Could anyone explain what does happen in this case? In the same time building standart OS/2 executable using _link386.exe_ causes no error at all. ibraries are the same, except format of them. Is this a bug of _emx_? I'll be grateful if anyone could explain this phenomenon. AMF, Marat aka Marat.Afanasyev@ksu.ru Kazan University, Department of Computing Mathematics and Cybernetics. --- * Origin: 'Curioser and curioser' - cried I (2:5049/16.12) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4Y00004 Date: 04/27/97 From: ALEXANDRE OSTANINE Time: 03:21am \/To: STEPHEN GAGE (Read 4 times) Subj: INI file libraries Stephen Gage wrote in a message to All: SG> Hi! Does anyone out there know of some libraries that can SG> handle reading / writing information to/from *.INI files? SG> Thanks SG> $teve SG> --- FMail 1.22 SG> * Origin: (2:2500/607.15) In Windows API there is few such funtions: (Windows API.Initialization-File funtions) GetPrivateProfileInt Retrieves integer value from initialization file GetPrivateProfileString Retrieves a string from an initialization file GetProfileInt Retrieves an integer value from WIN.INI GetProfileString Retrieves a string from WIN.INI WritePrivateProfileString Writes a string to an initialization file WriteProfileString Writes a string to WIN.INI Alexandre --- * Origin: Just another Selverd point . (2:282/608.74) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E4Y00005 Date: 04/28/97 From: HERMAN SCHONFELD Time: 04:59pm \/To: JAY MOREAU (Read 4 times) Subj: Newbie HS> Get Borland C++ v5.0, it's good to start off with and to keep using HS> it, however, if your after speedy executables use either 1) Watcom HS> 2) DJGPP 3) MSVC++ JM>Can you specify a price range? At least aprox. Canadian currency if JM>possible $140 maybe? ... Fh|$ fagL|ne made fGfm GScYcLed ac|| chaGacfSG$ --- Ezycom V1.48g0 01fd016b * Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)