--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00005 Date: 06/28/97 From: TOSH MADDOX Time: 03:28pm \/To: ERIC BRAYEUR (Read 3 times) Subj: Colors => Quoting Eric Brayeur to ALL on 04 Jun 97 04:41:53 <= Hello Eric, EB> Can anyone tell me how to change the current color of cout ? I don't know what compiler you are using but, with Turbo C++, the manual states to use constrea.h to manipulate colors for streams, I don't know if there are any other ways to do it but it does work. #include int main(void) { constream out; out.clrscr(); out << setbk(RED) << setclr(YELLOW); out << "This is yellow text with Red background" << endl; return 0; } The message was old so I don't know if you found another way, if you did, I would appreciate the way you found it to work. Thanks. Tosh ... Get down and Modem the night away! --- Blue Wave/DOS v2.30 * Origin: Tosh's Point Leupp, Arizona (1:2004/102.2) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00006 Date: 06/28/97 From: TOSH MADDOX Time: 03:26pm \/To: BALOG PAL (Read 3 times) Subj: Visual C++ 4.0 or MFC bug => Quoting Balog Pal to All on 25 Jun 97 22:18:22 <= Hello Balog, I have a question for you. I am using Visual C++ Standard edition and I was wondering if you can compile console mode without getting a message \OLDLIB format bad error while building/compiling in the IDE. E.g. you know that sample tutorial for the Hello World for Console mode? Can you compile it in the IDE without errors? I can only get it to compile while using the command line CL HELLO.CPP /G3 but not in the IDE. Thanks. Tosh ... Pi R Squared? No. Pie R round, Cornbread R square! --- Blue Wave/DOS v2.30 * Origin: Tosh's Point Leupp, Arizona (1:2004/102.2) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00007 Date: 06/29/97 From: WADE CARPENTER Time: 06:02pm \/To: LUKE PORTER (Read 3 times) Subj: Re: BEGINNING IN C -=> Quoting Luke Porter to All <=- LP> I am interested in learning C, but I have very minimal experience LP> with programming. I took 1 year of BASIC, but that is it. My question LP> is should I build my experience up first before attempting to learn C, LP> or should I jump right into it? Also, if I do try to learn it, what is LP> the best method? Should I take a class or teach myself? In the latter, LP> which book is the best? Well, one book I have is The Waite Group's "NEW C PRIMER PLUS" second dition. This is a great book, and from it I have learned a lot. You shouldn't spend any more time on BASIC, in my opinion. I would suggst C++, as that's what I use, and that book helps with C++ a lot. ... ASCII stupid question, get a stupid ANSI. --- * Origin: Alley Drive Software, Maple Ridge BC - 604-463-1776 (1:153/265) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00008 Date: 06/29/97 From: WADE CARPENTER Time: 05:58pm \/To: JOHN HENDRICKS (Read 3 times) Subj: Re: C/Pascal -=> Quoting John Hendricks to All <=- I must say that C is a much better language than Pascal. It is a lot more compressed, by way of keywords, etc. It may take a little longer to learn, but it is by far more powerful. Well, that's just my opinion, take it or leave it. ... Keyboard unattached. press F1 to continue. --- * Origin: Alley Drive Software, Maple Ridge BC - 604-463-1776 (1:153/265) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00009 Date: 06/29/97 From: WADE CARPENTER Time: 06:10pm \/To: STEVEN DYCK (Read 3 times) Subj: Re: pictures and sound -=> Quoting Steven Dyck to All <=- 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. SD> TTYL! SD> Steve If you find out, *>please<* tell me. I have been trying to find out for a year! ... Experience is what you got when you didn't get what you wanted. --- * Origin: Alley Drive Software, Maple Ridge BC - 604-463-1776 (1:153/265) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00010 Date: 06/29/97 From: WADE CARPENTER Time: 06:13pm \/To: JERRY COFFIN (Read 3 times) Subj: Re: pictures and sound I was wondering how you would load a PCX or BMP using DOS. I have been trying to figure out how to do this forever. And if you knew how to play mods or midis or whatnot, in DOS using an SB16, then they help would be great as well. Thanks... ... This tagline is password protected. To view type Ctrl-Alt-Del. --- * Origin: Alley Drive Software, Maple Ridge BC - 604-463-1776 (1:153/265) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EAZ00011 Date: 06/30/97 From: KURT KUZBA Time: 05:22am \/To: JERRY COFFIN (Read 3 times) Subj: Graphics routines JC> My proof is having done both on a lot of boards and JC> having seen the results. ERROR C101: Argument missing or incorrect ------------------------------------------------ | Your program attempted to supply a constant | | fact where a variable argument was expected. |) ------------------------------------------------ > ] Remain calm and think. I will help you. - Kwai Chang CPUfan. --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EB100000 Date: 06/27/97 From: STUART MILLER Time: 09:13am \/To: JOHN HENDRICKS (Read 3 times) Subj: PASCAL or C? Hi John, JH> What would be best to start in, C or Pascal? I've heard that C is JH> more easy to use than pascal and that it's more flexible, also it's not Okay, PASCAL is alot easier to learn, for the basics. If you`ve done structured programming before (i.e. Modula 2) then dont bother with PASCAL, there too alike. Otherwise, I recommend you try a bit of PASCAL first. It will help you understand the basics of coding around the idea of units / headers. Also, the syntax is very alike to C/++, so by learning PASCAL you`ll be able to pick up C in about a week or two. (well, I did!) Alot of programming revolves around maths, so by using PASCAL, its easier to do the mathematical things. Also, PASCAL`s file handling is quite similar to C so converting that shouldnt be hard. Th main difference is that PASCALs direct memory manupulation routines are harder to get to grips with, as C hands them to you on a plate, so to speak! But then, at least you`ll end up with a good knowledge of the basic memory model! Procedures are basically the same, as are many other things. Borlands Turbo Pascal is good and I personally like Turbo C++ (as I use both). And by keeping to one companies products, you`ll be guaranteeing that some compiler specific commands are the same. And, hey, Wolfenstein 3D was written in Borland C++ (the source code is freely available from many BBSes). Good Luck, but at the end of the day, its upto you. When you get into C, a good book to get is the Kernigan & Richie one. Its a bit complex, but its really useful! STUART MILLER --- Terminate 4.00 * Origin: The NEW Terminate will -=> FAX <=- almost anything! (2:251/56.13)