dev-cpp-users Mailing List for Dev-C++ (Page 659)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Julio L. <ju2...@ya...> - 2001-10-15 21:32:40
|
I dont know how recent of an edition you are looking for, but there are some downloadable C++ books (like Sams Teach Yourself C++ in 21 Days 2nd Edition) here: http://www.informit.com/free_library/index.asp?st={FAA431F7-11F1-4FBF-8681-0C84321AEB69}&session_id={749C1C0D-7D5F-4319-B1DA-6392AB89175F} ____________ORIGINAL MESSAGE______________________ FROM: =DATE: 10/15/2001 06:47:04SUBJECT: [Dev-C++] RE: Re: RE: need help using cin.getline() And like what I thought so, I was wrong... <IIIIIIIIIIIIIII> anyway, any of you guys know where I can get a C++ ebook? That is, the one I can download? the one that I have here was really meant as a tutorial - an introduction to the language, but it is not complete - I didn't even know the commands to flush the keyboard buffer! Well, hope you guys know where I can download a book... <IIIIIIIIIIIIIII> also, to julio, just to remind you, I was using the Cygnus Insight debugger(although not the current version). I prefer to use this than the console mode GNU debugger(because its easier to learn for me). if you downloaded dev-c++ from the internet, Insight is not included... you can download it from the resources page. If you already have it, well just try to use it... a debugger might be one of the tools that could help diagnose a problem(because it is a de-bugger). Well... I really hope that somehow I helped you... also, to all you folks! how do I use the "flush" function? what are its parameters? Thank you everyone in advance! __________________________________ http://www.edsamail.com _______________________________________________ Dev-cpp-users mailing list <EMAIL: PROTECTED> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ===== Julio __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com |
|
From: Colin L. <col...@wa...> - 2001-10-15 20:41:49
|
Hi all ! :) ** CURRENT FEATURES LIST FOR Dev-C++ 5 ** * Mandatory features - Makefiles - Editors in tabsheets - International language support - Source file, project, static and dynamic libraries support - CVS friendly - Auto formatting - Better color support for the editor background - Project management internal improvements - Provide a better original mingw directory structure support * Optional features - Try to get what make is doing step by step - Find in all files - CVS builtin functions - Customizable toolbars Please send your suggestions to : ha...@bl... withthe subject : DEV-C++ SUGGESTIONS Thanks for the feedback :) Colin Laplace |
|
From: Jason H. <jas...@bt...> - 2001-10-15 13:49:55
|
I have been using the most recent distribution of MinGW with Dev-C++ for a while now. I installed it into C:\MinGW using the standard directory structure supplied with the package (v1.1 I think), and then went to Dev-C++ compiler options and changed all the paths to that directory, i.e. C:\MinGW\Bin\ for the binaries. I haven't had any problems working with that so far, however I would like it if the MinGW was distrubuted separated from the Dev-C++ binaries and other stuff. I don't mind it being part of the distribution package, but it would be better for it to be installed to another path from Dev-C++. Jason. ----- Original Message ----- From: "Ray & Debbie Smith" <sm...@ma...> To: <dev...@li...> Sent: Monday, October 15, 2001 10:07 AM Subject: Re: [Dev-C++] I need your suggestions for the next Dev-C++ release ;) > Hi Colin, > > I'm sure this has been mentioned before ... > the ability "add on" Dev-C++ to a current Mingw install. > > Or to put it another way allow Mingw to be updated like a normal Mingw > install. > > I'm sure if I looked through all the directories I could work out what goes > where > ... but it would be nice if it used the standard Mingw directory structure. > > Thanks for a great product! > > Ray Smith > > > > > ----- Original Message ----- > From: Colin Laplace <col...@wa...> > To: <dev...@li...> > Sent: Sunday, October 14, 2001 11:17 PM > Subject: [Dev-C++] I need your suggestions for the next Dev-C++ release ;) > > > > Hi all ! > > > > I am willing to rewrite a Dev-C++ for Windows. I would need your > suggestions > > of what should be rewrote/added/removed. Currently here are the things i'm > > willing to change/add : > > > > - Makefiles are now used for compiling > > - Source editor will now fit in a tabsheet (no more multiple windows > > interface) > > - Make it a lot more stable (this is the aim of this rewrote) > > - International language support (no more English-only version) > > > > Huge features such as code explorer or RAD tool won't be implemented for > now > > > > If you have suggestions please send them to ha...@bl... with the > > subject : DEV-C++ SUGGESTIONS > > > > Thank you in advance :) > > Greetings, > > Colin Laplace > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2001-10-15 13:49:21
|
<html><div style='background-color:'><DIV> <P>I have 6 diplomas in C++ and I've never come across the flush function before lol<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "< =( >" <VIN...@ED...> <DIV></DIV>>To: "Dev-C++ mailing list" <DEV...@LI...> <DIV></DIV>>Subject: [Dev-C++] RE: Re: RE: need help using cin.getline() <DIV></DIV>>Date: Mon, 15 Oct 2001 21:47:04 +0800 <DIV></DIV>> <DIV></DIV>>And like what I thought so, I was wrong... <DIV></DIV>> <DIV></DIV>> <DIV></DIV>><IIIIIIIIIIIIIII> <DIV></DIV>> <DIV></DIV>>anyway, any of you guys know where I can get a C++ ebook? That is, the one I can download? the one that I have here was really meant as a tutorial - an introduction to the language, but it is not complete - I didn't even know the commands to flush the keyboard buffer! Well, hope you guys know where I can download a book... <DIV></DIV>> <DIV></DIV>><IIIIIIIIIIIIIII> <DIV></DIV>> <DIV></DIV>>also, to julio, just to remind you, I was using the Cygnus Insight debugger(although not the current version). I prefer to use this than the console mode GNU debugger(because its easier to learn for me). if you downloaded dev-c++ from the internet, Insight is not included... you can download it from the resources page. If you already have it, well just try to use it... a debugger might be one of the tools that could help diagnose a problem(because it is a de-bugger). Well... I really hope that somehow I helped you... <DIV></DIV>> <DIV></DIV>>also, to all you folks! how do I use the "flush" function? what are its parameters? <DIV></DIV>> <DIV></DIV>>Thank you everyone in advance! <DIV></DIV>> <DIV></DIV>>__________________________________ <DIV></DIV>>www.edsamail.com <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: < =( > <vin...@ed...> - 2001-10-15 13:38:12
|
And like what I thought so, I was wrong... <IIIIIIIIIIIIIII> anyway, any of you guys know where I can get a C++ ebook? That is, the one I can download? the one that I have here was really meant as a tutorial - an introduction to the language, but it is not complete - I didn't even know the commands to flush the keyboard buffer! Well, hope you guys know where I can download a book... <IIIIIIIIIIIIIII> also, to julio, just to remind you, I was using the Cygnus Insight debugger(although not the current version). I prefer to use this than the console mode GNU debugger(because its easier to learn for me). if you downloaded dev-c++ from the internet, Insight is not included... you can download it from the resources page. If you already have it, well just try to use it... a debugger might be one of the tools that could help diagnose a problem(because it is a de-bugger). Well... I really hope that somehow I helped you... also, to all you folks! how do I use the "flush" function? what are its parameters? Thank you everyone in advance! __________________________________ www.edsamail.com |
|
From: Ray & D. S. <sm...@ma...> - 2001-10-15 09:03:27
|
Hi Colin, I'm sure this has been mentioned before ... the ability "add on" Dev-C++ to a current Mingw install. Or to put it another way allow Mingw to be updated like a normal Mingw install. I'm sure if I looked through all the directories I could work out what goes where ... but it would be nice if it used the standard Mingw directory structure. Thanks for a great product! Ray Smith ----- Original Message ----- From: Colin Laplace <col...@wa...> To: <dev...@li...> Sent: Sunday, October 14, 2001 11:17 PM Subject: [Dev-C++] I need your suggestions for the next Dev-C++ release ;) > Hi all ! > > I am willing to rewrite a Dev-C++ for Windows. I would need your suggestions > of what should be rewrote/added/removed. Currently here are the things i'm > willing to change/add : > > - Makefiles are now used for compiling > - Source editor will now fit in a tabsheet (no more multiple windows > interface) > - Make it a lot more stable (this is the aim of this rewrote) > - International language support (no more English-only version) > > Huge features such as code explorer or RAD tool won't be implemented for now > > If you have suggestions please send them to ha...@bl... with the > subject : DEV-C++ SUGGESTIONS > > Thank you in advance :) > Greetings, > Colin Laplace > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2001-10-15 06:53:06
|
<html><div style='background-color:'><DIV> <P>when you say "wouldn't start" what exactly do you mean? what errors came up on the screen? what machines have you tried it on?<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "kmk" <KM...@WO...> <DIV></DIV>>Reply-To: <KM...@EX...> <DIV></DIV>>To: <DEV...@LI...> <DIV></DIV>>Subject: [Dev-C++] Starting Trouble <DIV></DIV>>Date: Sun, 14 Oct 2001 20:47:04 -0700 <DIV></DIV>> <DIV></DIV>>I installed Dev-C++ on 3 different machines <DIV></DIV>>and it wouldnt start on any of those machines. <DIV></DIV>> <DIV></DIV>>I do see some CPU activity on gtop. <DIV></DIV>> <DIV></DIV>>Eventually, I had to kill it. <DIV></DIV>> <DIV></DIV>>Any ideas? <DIV></DIV>> <DIV></DIV>>/kmk <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: kmk <km...@wo...> - 2001-10-15 03:47:07
|
I installed Dev-C++ on 3 different machines and it wouldnt start on any of those machines. I do see some CPU activity on gtop. Eventually, I had to kill it. Any ideas? /kmk |
|
From: Jason H. <jas...@bt...> - 2001-10-14 21:56:51
|
Saying flush function is a bit missleading as the flush() function is for
the output stream. The function you want is ignore(), which will discard a
certain number of characters from the input stream i.e.
cin.ignore(2);
This will discard two characters. I'm not going in depth into this function,
and it can do a little more than what I have said. I recomend that you get
yourself a good C++ reference book to help you answer questions like this. I
use "C++: The Complete Reference (third edition)" by Herbert Schildt for
syntax and function finding, and Bjarne Stroustrup's "C++ Programming
Language (third edtion)" for programming style related stuff. Both are good
books, although if you are an absolute beginner to programming in general I
recomend you also have a look at a beginners book. Note that there may be
newer editions than the ones I have.
Jason.
----- Original Message -----
From: "Julio Lajara" <ju2...@ya...>
To: <dev...@li...>
Sent: Sunday, October 14, 2001 7:43 PM
Subject: [Dev-C++] RE: RE: RE: need help using cin.getline()
> Can anyone show me how to use the flush function? I
> know you are supposed to be able to call it directly,
> but when I do, the compiler says I passed to few
> parameters... What am I supposed to pass to the flush
> function???
>
> ORIGINAL MESSAGE:
>
> FROM: People == DissapointmentDATE: 10/14/2001
> 06:47:03SUBJECT: RE: [Dev-C++] RE: need help using
> cin.getline() whoa. do not use this. it is very poor
> style, inefficient and could lead to
> problems. if you have something in the keyboard
> buffer, just use a flush
> function before your next input.
>
>
> >From: "<dA-Vin-G>" <<EMAIL: PROTECTED>>
> >To: "Dev-C++ mailing list" <<EMAIL: PROTECTED>>
> >Subject: [Dev-C++] RE: need help using cin.getline()
> >Date: Sun, 14 Oct 2001 13:09:38 +0800
> >
> >I dont really know if this is right or not, I'm still
> learning C++ but I
> >think I can help at this problem of yours. I had
> experience in programming
> >other languages and I hope it helps...
> >
> >I actually debugged you code. It wasn't really the
> program's error but a
> >LOGICAL ERROR - that is, the syntax is right, the
> compiler says it is
> >right, but what it does is "wrong". Still with me?
> >
> >My solution, I added the following line(s) to your
> code. Fortunately it
> >worked. I hope this works...
> >
> >char AbsorbKey[2];
> >cin.getline(AbsorbKey, 50);
> >
> >I added them to the "void menu()" function. It now
> looks like this:
> >
> >void menu() {
> > Book *storedBooks= new Book [20];
> > unsigned short int counter=1;
> >
> > int exit=1;
> > while(exit) {
> > unsigned short int menuChoice;
> > cout < "\n\n ***Welcome to the Library of
> > E-Books***\n\n\n";
> > cout < " (1) View Sample Book Info\n";
> > cout < " (2) Store New Book Info\n";
> > cout < " (3) Search Book Info\n";
> > cout < " (4) Leave the Library\n\n\n";
> > cout < " Enter Choice #: ";
> > cin > menuChoice;
> >
> > // This is what I added =>
> >
> > char AbsorbKey[2];
> > cin.getline(AbsorbKey, 50);
> >
> > // :~
> >
> > switch(menuChoice) {
> >
> > //...
> >
> > }//end switch(menuChoice)
> >
> > delete [] storedBooks;
> >
> > }//end while loop
> >
> >}//end menu()
> >
> >Explanation:
> >I don't really know how or why it happened. I arrived
> at this solution
> >because when I was debugging it (without the lines I
> added), I noticed that
> >the first byte of bAuthor always changes to "/00" or
> simply a empty
> >character. And then, it would pass the cin.getline()
> and assumed that there
> >was already input from the user.
> >
> >A hunch - a character that cant be read by "cin >
> int" was passed to
> >"cin.getline(char[], int)". The function thought that
> it had already
> >recieved the input it needed.
> >
> >I dont think this is the right explanation. But I
> hope it works for you...
> >It worked for me
> >
> >
> >
> >__________________________________
> >www.edsamail.com
> >
> >_______________________________________________
> >Dev-cpp-users mailing list
> ><EMAIL: PROTECTED>
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> <EMAIL: PROTECTED>
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> =====
> Julio
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Julio L. <ju2...@ya...> - 2001-10-14 18:43:50
|
Can anyone show me how to use the flush function? I
know you are supposed to be able to call it directly,
but when I do, the compiler says I passed to few
parameters... What am I supposed to pass to the flush
function???
ORIGINAL MESSAGE:
FROM: People == DissapointmentDATE: 10/14/2001
06:47:03SUBJECT: RE: [Dev-C++] RE: need help using
cin.getline() whoa. do not use this. it is very poor
style, inefficient and could lead to
problems. if you have something in the keyboard
buffer, just use a flush
function before your next input.
>From: "<dA-Vin-G>" <<EMAIL: PROTECTED>>
>To: "Dev-C++ mailing list" <<EMAIL: PROTECTED>>
>Subject: [Dev-C++] RE: need help using cin.getline()
>Date: Sun, 14 Oct 2001 13:09:38 +0800
>
>I dont really know if this is right or not, I'm still
learning C++ but I
>think I can help at this problem of yours. I had
experience in programming
>other languages and I hope it helps...
>
>I actually debugged you code. It wasn't really the
program's error but a
>LOGICAL ERROR - that is, the syntax is right, the
compiler says it is
>right, but what it does is "wrong". Still with me?
>
>My solution, I added the following line(s) to your
code. Fortunately it
>worked. I hope this works...
>
>char AbsorbKey[2];
>cin.getline(AbsorbKey, 50);
>
>I added them to the "void menu()" function. It now
looks like this:
>
>void menu() {
> Book *storedBooks= new Book [20];
> unsigned short int counter=1;
>
> int exit=1;
> while(exit) {
> unsigned short int menuChoice;
> cout < "\n\n ***Welcome to the Library of
> E-Books***\n\n\n";
> cout < " (1) View Sample Book Info\n";
> cout < " (2) Store New Book Info\n";
> cout < " (3) Search Book Info\n";
> cout < " (4) Leave the Library\n\n\n";
> cout < " Enter Choice #: ";
> cin > menuChoice;
>
> // This is what I added =>
>
> char AbsorbKey[2];
> cin.getline(AbsorbKey, 50);
>
> // :~
>
> switch(menuChoice) {
>
> //...
>
> }//end switch(menuChoice)
>
> delete [] storedBooks;
>
> }//end while loop
>
>}//end menu()
>
>Explanation:
>I don't really know how or why it happened. I arrived
at this solution
>because when I was debugging it (without the lines I
added), I noticed that
>the first byte of bAuthor always changes to "/00" or
simply a empty
>character. And then, it would pass the cin.getline()
and assumed that there
>was already input from the user.
>
>A hunch - a character that cant be read by "cin >
int" was passed to
>"cin.getline(char[], int)". The function thought that
it had already
>recieved the input it needed.
>
>I dont think this is the right explanation. But I
hope it works for you...
>It worked for me
>
>
>
>__________________________________
>www.edsamail.com
>
>_______________________________________________
>Dev-cpp-users mailing list
><EMAIL: PROTECTED>
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
_______________________________________________
Dev-cpp-users mailing list
<EMAIL: PROTECTED>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
=====
Julio
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
|
|
From: People == D. <el...@ho...> - 2001-10-14 13:47:11
|
whoa. do not use this. it is very poor style, inefficient and could lead to
problems. if you have something in the keyboard buffer, just use a flush
function before your next input.
>From: "<dA-Vin-G>" <vin...@ed...>
>To: "Dev-C++ mailing list" <dev...@li...>
>Subject: [Dev-C++] RE: need help using cin.getline()
>Date: Sun, 14 Oct 2001 13:09:38 +0800
>
>I dont really know if this is right or not, I'm still learning C++ but I
>think I can help at this problem of yours. I had experience in programming
>other languages and I hope it helps...
>
>I actually debugged you code. It wasn't really the program's error but a
>LOGICAL ERROR - that is, the syntax is right, the compiler says it is
>right, but what it does is "wrong". Still with me?
>
>My solution, I added the following line(s) to your code. Fortunately it
>worked. I hope this works...
>
>char AbsorbKey[2];
>cin.getline(AbsorbKey, 50);
>
>I added them to the "void menu()" function. It now looks like this:
>
>void menu() {
> Book *storedBooks= new Book [20];
> unsigned short int counter=1;
>
> int exit=1;
> while(exit) {
> unsigned short int menuChoice;
> cout << "\n\n ***Welcome to the Library of
> E-Books***\n\n\n";
> cout << " (1) View Sample Book Info\n";
> cout << " (2) Store New Book Info\n";
> cout << " (3) Search Book Info\n";
> cout << " (4) Leave the Library\n\n\n";
> cout << " Enter Choice #: ";
> cin >> menuChoice;
>
> // This is what I added =>
>
> char AbsorbKey[2];
> cin.getline(AbsorbKey, 50);
>
> // :~
>
> switch(menuChoice) {
>
> //...
>
> }//end switch(menuChoice)
>
> delete [] storedBooks;
>
> }//end while loop
>
>}//end menu()
>
>Explanation:
>I don't really know how or why it happened. I arrived at this solution
>because when I was debugging it (without the lines I added), I noticed that
>the first byte of bAuthor always changes to "/00" or simply a empty
>character. And then, it would pass the cin.getline() and assumed that there
>was already input from the user.
>
>A hunch - a character that cant be read by "cin >> int" was passed to
>"cin.getline(char[], int)". The function thought that it had already
>recieved the input it needed.
>
>I dont think this is the right explanation. But I hope it works for you...
>It worked for me
>
>
>
>__________________________________
>www.edsamail.com
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Colin L. <col...@wa...> - 2001-10-14 13:17:01
|
Hi all ! I am willing to rewrite a Dev-C++ for Windows. I would need your suggestions of what should be rewrote/added/removed. Currently here are the things i'm willing to change/add : - Makefiles are now used for compiling - Source editor will now fit in a tabsheet (no more multiple windows interface) - Make it a lot more stable (this is the aim of this rewrote) - International language support (no more English-only version) Huge features such as code explorer or RAD tool won't be implemented for now If you have suggestions please send them to ha...@bl... with the subject : DEV-C++ SUGGESTIONS Thank you in advance :) Greetings, Colin Laplace |
|
From: <dA-Vin-G> <vin...@ed...> - 2001-10-14 05:03:23
|
Hey! Is there anyone who would be kind enough to tell me if there is a Dev-C++ package for the free Morfit 3d engine? (or would there be someone whose gonna do it?) Thanks in advance __________________________________ www.edsamail.com |
|
From: <dA-Vin-G> <vin...@ed...> - 2001-10-14 05:03:22
|
I dont really know if this is right or not, I'm still learning C++ but I think I can help at this problem of yours. I had experience in programming other languages and I hope it helps...
I actually debugged you code. It wasn't really the program's error but a LOGICAL ERROR - that is, the syntax is right, the compiler says it is right, but what it does is "wrong". Still with me?
My solution, I added the following line(s) to your code. Fortunately it worked. I hope this works...
char AbsorbKey[2];
cin.getline(AbsorbKey, 50);
I added them to the "void menu()" function. It now looks like this:
void menu() {
Book *storedBooks= new Book [20];
unsigned short int counter=1;
int exit=1;
while(exit) {
unsigned short int menuChoice;
cout << "\n\n ***Welcome to the Library of
E-Books***\n\n\n";
cout << " (1) View Sample Book Info\n";
cout << " (2) Store New Book Info\n";
cout << " (3) Search Book Info\n";
cout << " (4) Leave the Library\n\n\n";
cout << " Enter Choice #: ";
cin >> menuChoice;
// This is what I added =>
char AbsorbKey[2];
cin.getline(AbsorbKey, 50);
// :~
switch(menuChoice) {
//...
}//end switch(menuChoice)
delete [] storedBooks;
}//end while loop
}//end menu()
Explanation:
I don't really know how or why it happened. I arrived at this solution because when I was debugging it (without the lines I added), I noticed that the first byte of bAuthor always changes to "/00" or simply a empty character. And then, it would pass the cin.getline() and assumed that there was already input from the user.
A hunch - a character that cant be read by "cin >> int" was passed to "cin.getline(char[], int)". The function thought that it had already recieved the input it needed.
I dont think this is the right explanation. But I hope it works for you... It worked for me
__________________________________
www.edsamail.com
|
|
From: Ioannis V. <no...@ya...> - 2001-10-14 03:33:05
|
Does anyone know how can i identify the active tcp/ip connections of my machine using win32 api? To be more accurate i want to identify the ip addresses my pc is connected to from the various applications and be able to read the data transmitted from any application.=20 =20 I would be grateful for any help! =20 =20 Friendly, Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys =20 |
|
From: <ste...@ge...> - 2001-10-13 20:12:39
|
Hi all! Where can I learn about network-programming in DevCPP? Thanks! |
|
From: Peter C. <pet...@li...> - 2001-10-13 18:45:10
|
Hello I'me writing a genetic algorithm for creating music. Does anybody know how to generate sounds (pitch and duration) . My program is written in console mode, but if that doesn't support sounds I could rewrite it in windows. I imagine there's some function taking two arguments that would do the job. So any help would be appreciated. Peter |
|
From: Julio L. <ju2...@ya...> - 2001-10-13 17:29:34
|
CD3DFont* and CMenuItem* are NOT pointers, they are the type of the pointer variable. g_pMenuFont and g_pCurrentMenu are the pointers, which according to what you wrote point to nothing. It is the same, but probably less confusing, or at least to me, to write it this way: CD3DFont *g_pMenuFont = NULL; CMenuItem *g_pCurrentMenu = NULL; //all the same type *pointer= NULL; type * pointer= MULL; type* pointer= NULL; ORIGINAL MESSAGE: FROM: Daniel GlenfieldDATE: 10/10/2001 14:14:42SUBJECT: [Dev-C++] what does this mean? html><div style='background-color:'><DIV> <DIV> <DIV>The bit I'm confused about is the asterisks(*). In the example below, CD3DFont* and CMenuItem* aren't pointers are they? Are g_pMenuFont and g_pCurrentMenu pointers?</DIV> <DIV> </DIV> <DIV>Please help lol</DIV> <DIV> </DIV> <DIV>CD3DFont* g_pMenuFont = NULL; </DIV> <DIV>CMenuItem* g_pCurrentMenu = NULL;</DIV></DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> _______________________________________________ Dev-cpp-users mailing list <EMAIL: PROTECTED> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ===== Julio __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com |
|
From: Julio L. <ju2...@ya...> - 2001-10-13 17:06:44
|
I cant seem to figure out why my program seems to skip
over the part where it is supposed to take input for
the author using cin.getline() and skips down to the
next cin.getline() for the title. Does anyone have any
suggestions, or comments? Here is the code (I used a
header file which i'll put first in addition to the
source file):
library2.hpp:
class Book
{
public:
Book(){}
Book(char bAuthor[], char bTitle[], unsigned short int
bPubDate)
{
strcpy(author,bAuthor);
strcpy(title,bTitle);
pubDate= bPubDate;
}
~Book(){}
void setAuthor(char
bAuthor[]){strcpy(author,bAuthor);}
void setTitle(char bTitle[]){strcpy(title,bTitle);}
void setPubDate(unsigned short int bPubDate){pubDate =
bPubDate;}
char* getAuthor(){return author;}
char* getTitle(){return title;}
unsigned short int getPubDate() const{return pubDate;}
private:
char author[50];
char title[50];
unsigned short int pubDate;
};
library.cpp:
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
#include "library2.hpp"
void sampBook();
void menu();
void newBook(Book *rStoredBooks,unsigned short int
&rCounter);
void newBook(Book *rStoredBooks, unsigned short int
&rCounter)
{
if(rCounter<21)
{
while(true)
{
char bAuthor[50], bTitle[50], bChoice;
unsigned short int bPubDate;
cout << "\n\n***Store New Book Information***\n\n\n";
cout << "Book #" << rCounter << "\n\n\n";
cout << "Book Author: ";
cin.getline(bAuthor, 50);
rStoredBooks[rCounter-1].setAuthor(bAuthor);
cout << "\n\nBook Title: ";
cin.getline(bTitle, 50);
rStoredBooks[rCounter-1].setTitle(bTitle);
cout << "\n\nBook Publication Date: ";
cin >> bPubDate;
rStoredBooks[rCounter-1].setPubDate(bPubDate);
rCounter++;
cout << "\n\n\n";
cout << " Are there any more books?(Y/N) : ";
cin >> bChoice;
switch(bChoice)
{
case 'Y': //fall through
case 'y': continue;
break;
case 'N': //fall through
case 'n': system("PAUSE");
system("cls");
break;
} //end switch
break;
}
}
else
{
cerr << "\n\n\n***Sorry, too many books have already
been stored.***\n\n\n";
system("PAUSE");
}
}//end newBook()
void sampBook()
{
Book *sampleBook= new Book("Julio Lajara", "The
Library", 2002);
cout << "\n\n ***Sample Book Information***\n\n\n";
cout << "Author: " << sampleBook->getAuthor() <<
"\n\n";
cout << "Title: " << sampleBook->getTitle() << "\n\n";
cout << "Publication Date: " <<
sampleBook->getPubDate() << "\n\n\n";
delete sampleBook;
system("PAUSE");
system("cls");
}//end sampBook()
void menu()
{
Book *storedBooks= new Book [20];
unsigned short int counter=1;
int exit=1;
while(exit)
{
unsigned short int menuChoice;
cout << "\n\n ***Welcome to the Library of
E-Books***\n\n\n";
cout << " (1) View Sample Book Info\n";
cout << " (2) Store New Book Info\n";
cout << " (3) Search Book Info\n";
cout << " (4) Leave the Library\n\n\n";
cout << " Enter Choice #: ";
cin >> menuChoice;
switch(menuChoice)
{
case 1: system("cls");
sampBook();
break;
case 2: system("cls");
newBook(storedBooks, counter);
break;
/* case 3: system("cls");
searchBook();
break; */
case 4: exit=0;
break;
default: system("cls");
continue;
break;
}//end switch(menuChoice)
delete [] storedBooks;
}//end while loop
}//end menu()
int main()
{
menu();
return 0;
}//end main()
=====
Julio
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
|
|
From: Flavio de S. (<fla...@ne...> - 2001-10-13 13:45:51
|
Hi listers: I am a new user of Dev-C++ and I am liking it a lot. I am just trying to use the "Default code for new source files" in the Environment Options menu, but it seems that it doesn't work. I tried to change the default code, but when I create a new file, it does not fill in with my default code. What do i have to do to make it work? Please, help me. tks in advance. Flavio de Souza fla...@ne... ICQ:78458203 |
|
From: Ioannis V. <no...@ya...> - 2001-10-13 06:53:27
|
I think it has restrictions of use for 30 days. Yes it has Delphi compiler dcc32, but i have not played with delphi so much. After all what do you need Delphi when you have C or C++? :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf Of Jared > Sent: Friday, October 12, 2001 11:58 PM > To: dev...@li... > Subject: [Dev-C++] borland trial download >=20 >=20 > What type of restrictions are on the borland download? What=20 > do they do to it I was considering downloading a trial=20 > compleeting a book with it if possible and then deciding to=20 > buy or not. Is it true also that the c++ compiler will=20 > compile delfi as well? >=20 >=20 > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Jason <tux...@au...> - 2001-10-12 23:28:23
|
So this link doesn't work? http://nehe.gamedev.net/ Just checking to see if you have the right link.. bana-sea- ----- Original Message -----=20 From: "JS" <jsc...@gm...> To: <dev...@li...> Sent: Thursday, October 11, 2001 5:57 AM Subject: [Dev-C++] NEHE ? > Hi, >=20 > the link to NEHE game dev org does not work ? >=20 > (how to place text in ogl) >=20 >=20 >=20 >=20 >=20 |
|
From: Jared <sto...@ya...> - 2001-10-12 21:59:02
|
What type of restrictions are on the borland download? What do they do to it I was considering downloading a trial compleeting a book with it if possible and then deciding to buy or not. Is it true also that the c++ compiler will compile delfi as well? _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: <ste...@ge...> - 2001-10-12 21:05:00
|
Well, I got it working now :)
I was just missing following;
=20
#include <mmsystem.h>
libwinmm.a
But now I got everything working... where can I find info on commands =
like stop playsounds etc.?
Stein
|
|
From: JS <jsc...@gm...> - 2001-10-11 11:00:45
|
Hi, the link to NEHE game dev org does not work ? (how to place text in ogl) |