--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAU00012 Date: 06/20/97 From: FERNANDO ARIEL GONT Time: 12:10am \/To: ALL (Read 3 times) Subj: QUIERO APRENDER C++ Hola, all !!! Les cuento: Quiero aprender C++, y no s que libro comprarme, ni tampoco s si anda cir- culando por los BBS algun curso copado sobre C++.... Alguien me podra orientar ??? Gracias !!! Fernando Ariel Gont * MikeMayl v1.0 * Take it easy.....or you'll have lead for lunch !!!! ...This copy of ProBoard has been unregistered for 325 days! --- FMailX 1.22 * Origin: 0VN1#%%#622-4344#%%#11pm-6am#%%#PROGRAMACION#X-FILES (4:900/613.9) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAU00013 Date: 06/22/97 From: FERNANDO ARIEL GONT Time: 12:36am \/To: ALL (Read 3 times) Subj: REVISTA SOBRE PRG Hola, all! No me acuerdo si ya haba dejado algun mensaje en esta rea sobre este tema: Estoy buscando gente que escriba notas sobre programacin para una revista e- lectrnica que tengo ganas de editar, sobre programacin BAJO D.O.S. La revista es 100% sin fines de lucro, y su nico objetivo es mantener viva a programacin bajo D.O.S. y ser un medio de informacin e intercambio de ideas para todos los programadores. ES INDISPENSABLE QUE TODOS COLABOREN, ya que a NADIE le sobra el TIEMPO, y me parece que a todos (o por lo menos a la mayora) nos vendra bien una revista de este tipo.... Estn bienvenidos TODOS los programadores que quieran escribir notas sobre cualquier lenguaje de programacin BAJO D.O.S., notas que expliquen diversos algoritmos, y tambin todo aquel que pueda colaborar como por ejemplo para distribuir la revista... Los que estn interesados, simplemente djenme un mensaje. Mil gracias, y espero leer algo de ustedes..... Fernando Ariel Gont * MikeMayl v1.0 * No Brains.... No Headaches! ...This copy of ProBoard has been unregistered for 327 days! --- FMailX 1.22 * Origin: 0VN1#%%#622-4344#%%#11pm-6am#%%#PROGRAMACION#X-FILES (4:900/613.9) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAU00014 Date: 06/23/97 From: THOMAS MAEDER Time: 08:07pm \/To: CAMERON CLARK (Read 3 times) Subj: template hell? CC> TM> It's even easier to use the list template of the Standard C++ Li CC> The what? My include directory comes with almost 300 header file The Standard C++ Library (more exactly: the library which is part of the ISO/ANSI Standard that will soon be accepted) contains a library of containers and algorithms. The containers include the templates list, vector and deque (double-ended queue). If your library doesn't yet contain these templates, download them from: look for STL or Standard Template Library. There are (at least) two free implementations, one from HP and the other from SGI. Thomas --- MM 1.0 #0113 Zum Schweigen fehlten mir die passenden Worte * Origin: McMeier & Son BBS (2:301/138) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAU00015 Date: 06/24/97 From: WILL ECKARD Time: 02:51pm \/To: ALL (Read 3 times) Subj: Help I'm having some trouble with compiling some software that a friend sent me..... Every time that I try to compile it I get Error Undefined symbol _main in module c0.ASM..... Can anyone help me? I've looked for the c0.ASM file and I don't have any .asm files on my system..... * QMPro 1.53 * All rising to a great place is by a winding stair. --- PCBoard (R) v15.3/5 * Origin: The Town Square BBS 209-824-2644 (1:208/401) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAU00016 Date: 06/24/97 From: ANTHONY TIBBS Time: 08:18pm \/To: STEVEN DYCK (Read 3 times) Subj: Re: pictures and sound SD> Being that no one has answered my question, it means one of three SD> things: no one know how, it is not possible, or I haven't waited long SD> enough. BTW, my questions were how to load a picture into a program and SD> how to play music in c++ (or c). I have one question related to this. SD> Is it just plain possible to do these things? Does anyone know how to SD> just play music in c/c++? Thanks for the help and attention. Sure it's possible! You can do ANYTHING in C/C++! You just have to have the right tools. What types of pictures? What types of "music"? MOD? S3M? MIDI? Sincerely, Anthony Tibbs ... He's got Blue Wave fever and it's spreading through the message bases! --- Blue Wave/DOS v2.30 [NR] * Origin: The World of Power BBS * Pvt * Ottawa, ON (1:163/215.38) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAY00000 Date: 06/26/97 From: KURT KUZBA Time: 09:33am \/To: CAMERON CLARK (Read 3 times) Subj: C++ Problem CC> If I recall correctly ANSI c++ forbids void pointers. I have never seen any reference to forbidding them, but they must be explicitly cast to type, unlike ANSI C, where you may use a void pointer with any type and have automatic casting, as with malloc(). > ] I had moral fibre once, but I did not inhale. [ B. Clinton ] --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAY00001 Date: 06/23/97 From: ERIC LONDAITS Time: 10:18am \/To: STEVEN DYCK (Read 3 times) Subj: more questions El Jueves 19 Junio 1997 a las 19:52, Steven Dyck le dijo a All: SD> question is is there any way to take a picture out of memory and put SD> it on the screen? If you don't follow (and you know a little about SD> q-basic) in q-basic, I would use bload. Also, is there any way to Of course there's a way since that's the way it's almost always done (memory->video) but the exact way will depend on which video mode you're working in. The easiest to use is mode 13h of the VGA card (320x200 and 256 colors) but it's getting aged now... :) I recommend getting some texts on VGA programming, they'll help you decide what to do... BTW, the way I do it in 320x200 is to create a pointer to the start of the video ram and then access it like an array using the line: video_ram[y_coordinate*320+x_coordinate]=color; but this can be done like this in mode 13h because memory is accessed linearly in it, using SVGA is quite a painstaking process. Eric Londaits wocky@usa.net --- GoldED/2 2.50 UNREG * Origin: Jabberwock Point (4:900/265) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAY00002 Date: 06/13/97 From: JAVIER KOHEN Time: 09:19pm \/To: ALL (Read 3 times) Subj: Classes [1/2] Could you please make any suggestions that you can have about this code??? (I mean the code part, not the algorithm) >>>>>>>>>> CSplit: Version 2.2 >>>>>>>>>> >>>>>>>>>> CSplit: Begin part 1/2 >>>>>>>>>> >>>>>>>>>> CSplit: Begin file MOUSE.CPP >>>>>>>>>> #include "mouse.h" const int MOUSEINT = 0x33; MouseInfo::MouseInfo() { setButtons(-1); } int MouseInfo::getButtons() const { return buttons; // if installed = number of buttons, else = -1 } void MouseInfo::setButtons(int but) { if (but != -1) { installed = True; buttons = but; } else { installed = False; buttons = -1; } } Mouse::Mouse(Boolean initialize) { if (initialize) { reset(Hard); } } void Mouse::reset(Reset resetType) { if (resetType == Hard) { regs.x.ax = 0x0000; } else { regs.x.ax = 0x0021; } int86(MOUSEINT, ®s, ®s); if (regs.x.ax == 0xFFFF) { switch (regs.x.bx) { case 0x0000: setButtons(0); break; case 0x0002: setButtons(2); break; case 0x0003: setButtons(3); break; case 0xFFFF: setButtons(2); break; default: setButtons(regs.x.bx); } } else { setButtons(-1); } } >>>>>>>>>> CSplit: End file MOUSE.CPP >>>>>>>>>> >>>>>>>>>> CSplit: Begin file MOUSE.H >>>>>>>>>> #ifndef __MOUSE_H #define __MOUSE_H #include #ifdef __GNUC__ #define int86 _int86 #endif // __GNUC__ enum Boolean { False, True }; class MouseInfo { Boolean installed; int buttons; protected: void setButtons(int); public: MouseInfo(); >>>>>>>>>> CSplit: End part 1/2 crc: 9d99 >>>>>>>>>> Internet: jkohen@tough.com Fidonet: 4:900/748.3 Sk-Network: 200:201/201.2 Rockernet: 33:300/100.3 Javier Kohen/The_Crusher PGP keyID: 3423EAA9 ... Pointers are irrelevant, you shall be dereferenced C of Borg -!- CrusherTag 0.021. --- 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: EAY00003 Date: 06/13/97 From: JAVIER KOHEN Time: 09:21pm \/To: ALL (Read 3 times) Subj: Classes [2/2] >>>>>>>>>> CSplit: Version 2.2 >>>>>>>>>> >>>>>>>>>> CSplit: Begin part 2/2 >>>>>>>>>> int getButtons() const; }; class Mouse : public MouseInfo { REGS regs; public: enum Reset { Soft, Hard }; Mouse(Boolean = True); void reset(Reset); }; #endif // __MOUSE_H >>>>>>>>>> CSplit: End file MOUSE.H >>>>>>>>>> >>>>>>>>>> CSplit: Begin file TEST.CPP >>>>>>>>>> #include #include "mouse.h" int main() { Mouse mouse(False); int buttons; cout << "Probando \"Hard\" reset...\n"; mouse.reset(Mouse::Hard); buttons = mouse.getButtons(); if (buttons != -1) { cout << "El mouse est activo.\n"; cout << "Tiene: " << buttons << " botones.\n"; } else { cout << "El mouse no est activo.\n"; } cout << "Probando \"Soft\" reset...\n"; mouse.reset(Mouse::Soft); buttons = mouse.getButtons(); if (buttons != -1) { cout << "El mouse est activo.\n"; cout << "Tiene: " << buttons << " botones.\n"; } else { cout << "El mouse no est activo.\n"; } return 0; } >>>>>>>>>> CSplit: End file TEST.CPP >>>>>>>>>> >>>>>>>>>> CSplit: End part 2/2 crc: 949e >>>>>>>>>> Thank you very much! :) Internet: jkohen@tough.com Fidonet: 4:900/748.3 Sk-Network: 200:201/201.2 Rockernet: 33:300/100.3 Javier Kohen/The_Crusher PGP keyID: 3423EAA9 ... A social life? What board can I download THAT from? -!- CrusherTag 0.021. --- 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: EAY00004 Date: 06/22/97 From: JAVIER KOHEN Time: 02:47am \/To: DAN MCGREGOR (Read 3 times) Subj: Colors On 06-Jun-97, Dan McGregor wrote to Eric Brayeur about Colors. EB>> Can anyone tell me how to change the current color of cout ? DM> Look up the Textcolor(int) functions in C. There are also #define's for: They only affect cprintf() and relatives... they are useless to C++ streams. Internet: jkohen@tough.com Fidonet: 4:900/748.3 Sk-Network: 200:201/201.2 Rockernet: 33:300/100.3 Javier Kohen/The_Crusher PGP keyID: 3423EAA9 ... You Couldn't Shut Up, Got a Bad Bad Brain Ramones -!- CrusherTag 0.021. --- Terminate 4.00/Pro * Origin: TNG season 7 DS9 season 2 VOY season 0 Movies 7 4:900/748.3)