dev-cpp-users Mailing List for Dev-C++ (Page 751)
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: mpstarix <mps...@ya...> - 2000-12-06 22:29:57
|
In your function, factorial_cal, you do almost nothing ! Mathmatically, we have the recursive definition : 0!=1 n!=n*(n-1)! this way, your recursive function would probably work better like this int fact_cal(int n) { if (n<2) { return 1; } else return (n*fact_cal(n-1)); } } But an iterative function is much more effective ! and costs less memory. We have n!=1*2*3*...*n so int fact(n) { int i,res=1; for (i=1;i<n+1;i++) { res=res*i; } return res; } By the way, I would probably use an unsigned long int instead of an int since n! is always positive and grows very fast. The only issue is that you don't check for an illegal value of n (negative for example, which returns 1 instead of an undefined result). Moreover, if there is an effective algorithm to calculate the Euler Gamma function on C\{-N}, I would be very interested. MPStarix At 20:26 06/12/2000 +0000, you wrote: >Hi friends, > >I have just started learning C++ (i'm using a material from >Cprogramming.com). I've tried to write a program to recursively calculate >the factorial of a number but it doesn't work. Can someone please tell me >what i've done wrong, Here is the code: > >#include <iostream.h> >#include <stdlib.h> > >int factorial_cal(int results) >{ > if (results>0) > > results=1*results; > factorial_cal(results-1); > > return results; >} >int main() > >{ >int number; >int results; >cout<< "Enter a number for me to caculate its Factorial"<<endl; >cin>>number; >results=number; >factorial_cal(results); > >cout<< " The factorial of "<<number<< " is "<<results<<endl; > > system("PAUSE"); > return 0; >} > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
From: Chad S. <ho...@ho...> - 2000-12-06 21:46:28
|
>From: "softnasolutions-ltd.fsbusiness.co.uk" ><so...@so...> >Reply-To: dev...@li... >To: <dev...@li...> >Subject: [Dev-C++] use of recursion >Date: Wed, 6 Dec 2000 20:26:39 -0000 > >Hi friends, > >I have just started learning C++ (i'm using a material from >Cprogramming.com). I've tried to write a program to recursively calculate >the factorial of a number but it doesn't work. Can someone please tell me >what i've done wrong, Here is the code: > >#include <iostream.h> >#include <stdlib.h> > >int factorial_cal(int results) >{ > if (results>0) > > results=1*results; > factorial_cal(results-1); > > return results; >} >int main() > >{ >int number; >int results; >cout<< "Enter a number for me to caculate its Factorial"<<endl; >cin>>number; >results=number; >factorial_cal(results); > >cout<< " The factorial of "<<number<< " is "<<results<<endl; > > system("PAUSE"); > return 0; >} Basically the problem you are having is caused by the fact that you aren't doing anything with the result of your recursion. You have the function calling itself, but it isn't in anyway affecting the return value. Try this instead. int factorial_cal(int value) { if(value == 1) return 1; else if(value > 0) return (value * factorial_cal(value-1)); else abort(); } Thus the recusion will result in: factorial_cal(5) creates (return 5*(return 4*(return 3*(return 2*1;);););) Where each set of parenthesis represents 1 call to the function. Chad Simmons _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
From: Plunkett, M. <MPl...@ms...> - 2000-12-06 21:30:28
|
Don't know C++ too well, but you're running your factorial_cal without catching the return value. Try results = factorial_cal( number ); -----Original Message----- From: softnasolutions-ltd.fsbusiness.co.uk [SMTP:so...@so...] Sent: Wednesday, December 06, 2000 3:27 PM To: dev...@li... Subject: [Dev-C++] use of recursion Hi friends, I have just started learning C++ (i'm using a material from Cprogramming.com). I've tried to write a program to recursively calculate the factorial of a number but it doesn't work. Can someone please tell me what i've done wrong, Here is the code: #include <iostream.h> #include <stdlib.h> int factorial_cal(int results) { if (results>0) results=1*results; factorial_cal(results-1); return results; } int main() { int number; int results; cout<< "Enter a number for me to caculate its Factorial"<<endl; cin>>number; results=number; factorial_cal(results); cout<< " The factorial of "<<number<< " is "<<results<<endl; system("PAUSE"); return 0; } _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
From: softnasolutions-ltd.fsbusiness.co.uk <so...@so...> - 2000-12-06 20:26:42
|
Hi friends, I have just started learning C++ (i'm using a material from Cprogramming.com). I've tried to write a program to recursively calculate the factorial of a number but it doesn't work. Can someone please tell me what i've done wrong, Here is the code: #include <iostream.h> #include <stdlib.h> int factorial_cal(int results) { if (results>0) results=1*results; factorial_cal(results-1); return results; } int main() { int number; int results; cout<< "Enter a number for me to caculate its Factorial"<<endl; cin>>number; results=number; factorial_cal(results); cout<< " The factorial of "<<number<< " is "<<results<<endl; system("PAUSE"); return 0; } |
From: Chad S. <ho...@ho...> - 2000-12-06 18:51:00
|
>From: mpstarix <mps...@ya...> >Reply-To: dev...@li... >To: dev...@li... >Subject: Re: [Dev-C++] int to string >Date: Wed, 06 Dec 2000 19:22:51 +0100 > >Try > >{ > char thestring[whatever] > > sprintf(whatever,"John has %d apples,muInt); >} > >sprintf applies a format and then puts the result into a string Right, but then you are dealing with a static string, and not a dynamic one. Which raises issues of buffer overflows, etc. As long as you know the length of the buffer cannot be exceeded you're ok. But it's often dificult to be sure. The standard C++ string and strstream classes prevent such overflowing by handling the memory allocation internally. Chad Simmons _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
From: mpstarix <mps...@ya...> - 2000-12-06 18:23:06
|
Try { char thestring[whatever] sprintf(whatever,"John has %d apples,muInt); } sprintf applies a format and then puts the result into a string At 17:58 06/12/2000 +0100, you wrote: >Read my question and you know that I'am a Neewbe :-) > >How to convert, cast, transform, whatever a int value to a string? > >include <string.h> > >string my1String = "John has"; >string my2String = "apples!"; >int myInt = 6; > >my1stString = my1stString + UNKNOWN_FUNC(myInt) + my2ndString; > >As you guessed I'd like to get: >"John has 6 apples!" > >Gregor > > > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
From: Chad S. <ho...@ho...> - 2000-12-06 18:06:43
|
>From: Gregor Peter <Gre...@dl...> >Reply-To: dev...@li... >To: "dev...@li..." ><dev...@li...> >Subject: [Dev-C++] int to string >Date: Wed, 06 Dec 2000 17:58:23 +0100 > >Read my question and you know that I'am a Neewbe :-) > >How to convert, cast, transform, whatever a int value to a string? > >include <string.h> > >string my1String = "John has"; >string my2String = "apples!"; >int myInt = 6; > >my1stString = my1stString + UNKNOWN_FUNC(myInt) + my2ndString; > >As you guessed I'd like to get: >"John has 6 apples!" How about this instead.. string my1String = "John"; string my2String = "apples"; int myInt = 6; strstream buffer; buffer << my1String << " has " << myInt << " "<< my2String << "!" << endl; cout << buffer.str(); // Output = John has 6 apples! Chad Simmons _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
From: Gregor P. <Gre...@dl...> - 2000-12-06 17:00:35
|
Read my question and you know that I'am a Neewbe :-) How to convert, cast, transform, whatever a int value to a string? include <string.h> string my1String = "John has"; string my2String = "apples!"; int myInt = 6; my1stString = my1stString + UNKNOWN_FUNC(myInt) + my2ndString; As you guessed I'd like to get: "John has 6 apples!" Gregor |
From: Gregor P. <Gre...@dl...> - 2000-12-06 16:50:01
|
Hi there, can anybody tell me where output like cout << "gone so far" << endln; in a windowbased application goes? I'am writing a windowbased programm and wanna write some debug informations to a console (like to the javaconsole). I opend a dos shell already (Tools/Dos Shell) or (F10) but nothing appears in here Thanks Gregor |
From: Ted R. <tro...@sy...> - 2000-12-05 23:33:56
|
Idea 3 would be better implemented as an option under project preferences. I for one like all my project components opened as I open the project file. Goon ----- Original Message ----- From: "Colin Laplace" <web...@bl...> To: <dev...@li...> Sent: Tuesday, December 05, 2000 1:55 PM Subject: Re: [Dev-C++] Additions for next version of devcpp > Thanks i've added everything to my "to do" list ;) > > Colin > > > Idea 1: > > When I select "save-all" in the file-menu I want to save changed files > > only. The current version saves all files regardless of if they have > > been changed. Since I use CVS, every change creates thus unneeded > > versions. This makes things complicated for other developers working on > > the same project. I try to save only the files that I actually changed > > but for large projects I can't keep track and much "save-all" to make > > sure everything is stored on disk. Maybe, in the project-window an icon > > could be added to changed files? Or an other text color for the > > filename? > > > > Idea 2: > > When compiling large projects it would be nice to have some insight in > > what is happening when I select build. Now I only see "compiling" and > > "linking", which is a bit sparse information. > > > > Idea 3: > > When I open a project, all files are opened immediately. For large > > projects this is not needed. I would rather open files when I need to > > change them. > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > -- > Colin Laplace > web...@bl... > http://www.bloodshed.net > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Colin L. <web...@bl...> - 2000-12-05 22:47:38
|
Thanks i've added everything to my "to do" list ;) Colin > Idea 1: > When I select "save-all" in the file-menu I want to save changed files > only. The current version saves all files regardless of if they have > been changed. Since I use CVS, every change creates thus unneeded > versions. This makes things complicated for other developers working on > the same project. I try to save only the files that I actually changed > but for large projects I can't keep track and much "save-all" to make > sure everything is stored on disk. Maybe, in the project-window an icon > could be added to changed files? Or an other text color for the > filename? > > Idea 2: > When compiling large projects it would be nice to have some insight in > what is happening when I select build. Now I only see "compiling" and > "linking", which is a bit sparse information. > > Idea 3: > When I open a project, all files are opened immediately. For large > projects this is not needed. I would rather open files when I need to > change them. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users -- Colin Laplace web...@bl... http://www.bloodshed.net |
From: A. Jans-B. <jan...@wx...> - 2000-12-04 20:56:22
|
I would like to propose the following idea's: Idea 1: When I select "save-all" in the file-menu I want to save changed files only. The current version saves all files regardless of if they have been changed. Since I use CVS, every change creates thus unneeded versions. This makes things complicated for other developers working on the same project. I try to save only the files that I actually changed but for large projects I can't keep track and much "save-all" to make sure everything is stored on disk. Maybe, in the project-window an icon could be added to changed files? Or an other text color for the filename? Idea 2: When compiling large projects it would be nice to have some insight in what is happening when I select build. Now I only see "compiling" and "linking", which is a bit sparse information. Idea 3: When I open a project, all files are opened immediately. For large projects this is not needed. I would rather open files when I need to change them. |
From: Colin L. <web...@bl...> - 2000-12-04 16:51:54
|
> Please don't send any more e-mails @ my address. This is not spam, it's a mailing list on C/C++ programming. Maybe somebody has registered with your email address. You can unsubscribe at www.bloodshed.net/devcpp-ml.html Colin > ----- Original Message ----- > From: GPL <gp...@ya...> > To: <dev...@li...> > Sent: Thursday, November 30, 2000 9:18 AM > Subject: [Dev-C++] Problems with Dev C++ 4 > > > > Hi everybody ! > > I have winME and problems with Dev-c++ 4 and 4.01 : > > with dev c++ 4, i very often had an out of memory error i could not exit > > from, now that's the same but with an 'illegal pointer operation'. How > > could I avoid this since when it occurs, i can't save nor exit from dev > c++ > > which makes me VERY angry. Thank you > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users -- Colin Laplace web...@bl... http://www.bloodshed.net |
From: Plunkett, M. <MPl...@ms...> - 2000-12-04 16:21:40
|
STOP. If you want to unsubscribe, follow the instructions in the message you got when you subscribed. From mine: Send an email to Dev...@li... <mailto:Dev...@li...> with the word 'help' in the subject or body (don't include the quotes), and you will get back a message with instructions. -----Original Message----- From: Joe Baroujian [SMTP:jo...@cy...] Sent: Monday, December 04, 2000 11:49 AM To: dev...@li... Subject: Re: [Dev-C++] Help - Newbee Please don't send any more e-mails @ my address. ----- Original Message ----- From: Matthew FitzGerald <fit...@ho...> To: <dev...@li...> Sent: Thursday, November 30, 2000 1:18 AM Subject: Re: [Dev-C++] Help - Newbee > Well, I must say, Dev-C++ is the best IDE I have ever used to code. I would > reccomend you use it, it is nice, simple, and still has plenty of features! > > ----- Original Message ----- > From: Peter Johnson <poi...@ho...> > To: <dev...@li...> > Sent: Monday, November 27, 2000 4:17 AM > Subject: Re: [Dev-C++] Help - Newbee > > > > Thanks Matt, what program do you use and where can i get it... at the > moment > > i have - Bloodshed Dev-C++ 4 - i don't know if it's any good or anything, > > but that's what i've got! > > > > ----- Original Message ----- > > From: "Matthew FitzGerald" <fit...@ho...> > > To: <dev...@li...> > > Sent: Saturday, November 25, 2000 12:45 PM > > Subject: Re: [Dev-C++] Help - Newbee > > > > > > > Yo Peter, I began learning at www.cprogramming.com but then later on I > > > purchased the book "The Beginners guide to C++" By Oleg Yareshenko. > Other > > > than a few outdated syntax problems (These can be overlooked easily > > > considering the quality of instruction this book provides) it is an > > awesome > > > book in my opinion! > > > > > > ----- Original Message ----- > > > From: Peter Johnson <poi...@ho...> > > > To: <dev...@li...> > > > Sent: Friday, November 24, 2000 3:48 PM > > > Subject: Re: [Dev-C++] Help - Newbee > > > > > > > > > > Thanks for that.. i'll check it out soon oh and Matthew how did you > > learn > > > > it?? Using what? > > > > If anyone else has any other online tutorials or books could they > please > > > > send me the addy. > > > > It would greatly appreciated. > > > > Peter > > > > > > > > ----- Original Message ----- > > > > From: <bis...@bt...> > > > > To: <dev...@li...> > > > > Sent: Thursday, November 23, 2000 10:50 PM > > > > Subject: RE: [Dev-C++] Help - Newbee > > > > > > > > > > > > > www.icce.rug.nl/docs/cplusplus/cplusplus.html > > > > > > > > > > might be a good place to start for C++. Use need to know some C > > > > beforehand, > > > > > however. > > > > > Try 'The C Programming Language' by K&R. Not available online > > > > unfortunately. > > > > > A search for 'C tutorial' in google.com might help. > > > > > > > > > > - Biswa. > > > > > > > > > > > -----Original Message----- > > > > > > From: Peter Johnson [mailto:poi...@ho...] > > > > > > Sent: 23 November 2000 11:25 > > > > > > To: dev-cpp-users > > > > > > Subject: [Dev-C++] Help - Newbee > > > > > > > > > > > > > > > > > > Hey, > > > > > > I've just kinda wandered on into C++ and to tell you the truth i > > have > > > > > > absolutely no idea how to do anything. Alright i know it's a > > > > > > programming > > > > > > language and you can create windows applictions and consoles > > > > > > etc. But i > > > > > > wouldn't know the first thing to go about learning it. I was > > > > > > wondering if > > > > > > anyone knew of any really good and simple online tutorials or > > > > > > the best way > > > > > > to learn. I don't know any coding. I do know HTML (not that > > > > > > that's any help) > > > > > > and a little Visual Basic but not enough to really understand what > > i'm > > > > > > crapping on about. Your help would be much appreciated. > > > > > > Thanks, Peter > > > > > > _______________________________________________ > > > > > > Dev-cpp-users mailing list > > > > > > Dev...@li... > > > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > > > > > _______________________________________________ > > > > > Dev-cpp-users mailing list > > > > > Dev...@li... > > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > > > _______________________________________________ > > > > Dev-cpp-users mailing list > > > > Dev...@li... > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
From: Joe B. <jo...@cy...> - 2000-12-04 15:49:50
|
Please don't send any more e-mails @ my address. ----- Original Message ----- From: loll <cp...@th...> To: <dev...@li...> Sent: Wednesday, November 29, 2000 9:45 PM Subject: [Dev-C++] Adding icons to dialog boxes > Hi, > > Im trying to add an icon to a dialog box. As you can probably tell I am new > to all this. > > When Dev c++ starts the project it includes an icon in the resource file. > I have been able to make a dialog box work with text and edit boxes etc. > however each time I try to add an icon to the dialog box in the resource > editor it refuses to compile the program. > > At the top of the resource file the line: > 500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE > "C:/DEV-C++/Icon/Documentation.ico" > > > the dialog code in the resource looks like: > > 105 DIALOG 70, 0, 110, 70 > STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME > CAPTION "About" > FONT 12,"arialnb.ttf" > BEGIN > ICON "myicon" 500, 30, 30 > PUSHBUTTON "OK", ID_CANCEL, 40, 50, 20, 10 > END > > The code works fine without the ICON command in the dialog, but with it in > there like that it wont compile. > > Can anyone help me here? > > Thanks > > Lawrence > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Joe B. <jo...@cy...> - 2000-12-04 15:49:43
|
Please don't send any more e-mails @ my address. ----- Original Message ----- From: Brian Keener <bk...@th...> To: <dev...@li...> Sent: Wednesday, November 29, 2000 10:14 PM Subject: Re: Re [Dev-C++] Problem with resource files. > Spiderman, > > You seem pretty sharp with this stuff and I'm new to C++. I have worked > some with resource files (primarily modifying other peoples resource > files) and I was wondering where I might find a good document on the > options and syntax for creating a resource file. I have made some pretty > good guesses so far but would like a little bit more how-to knowledge. > > Do you know of anything like that? > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Joe B. <jo...@cy...> - 2000-12-04 15:49:33
|
Please don't send any more e-mails @ my address. ----- Original Message ----- Please don't send any more e-mails @ my address. From: Chad Simmons <ho...@ho...> To: <dev...@li...> Sent: Wednesday, November 29, 2000 11:39 PM Subject: Re: [Dev-C++] Delay > >From: "Chris Bunney" <ch...@cb...> > >Reply-To: dev...@li... > >To: <dev...@li...> > >Subject: Re: [Dev-C++] Delay > >Date: Wed, 29 Nov 2000 18:35:47 -0000 > > > >Ian, > > > >Hi. I dont think dev-c++ has a delay command so I wrote my own, here is the > >code: > > > >#include <ctime> > > > >void delay(int seconds) > >{ > > clock_t current, end; > > > > current = clock(); > > end = current + CLOCKS_PER_SEC * seconds; > > > > while(current < end) > > current = clock(); // loop while current not equal end > >} > > > Eww.. Waste of CPU time. I suggest using the Win32 API Sleep or _sleep > functions instead. The reason is that your above delay function is > constantly working the CPU as it goes through the loop. The Sleep or_sleep > functions on the otherhand will actually halt the program until the set > amount of time has passed. > > Chad Simmons > ____________________________________________________________________________ _________ > Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Joe B. <jo...@cy...> - 2000-12-04 15:49:23
|
Please don't send any more e-mails @ my address. ----- Original Message ----- From: Matthew FitzGerald <fit...@ho...> To: <dev...@li...> Sent: Thursday, November 30, 2000 1:18 AM Subject: Re: [Dev-C++] Help - Newbee > Well, I must say, Dev-C++ is the best IDE I have ever used to code. I would > reccomend you use it, it is nice, simple, and still has plenty of features! > > ----- Original Message ----- > From: Peter Johnson <poi...@ho...> > To: <dev...@li...> > Sent: Monday, November 27, 2000 4:17 AM > Subject: Re: [Dev-C++] Help - Newbee > > > > Thanks Matt, what program do you use and where can i get it... at the > moment > > i have - Bloodshed Dev-C++ 4 - i don't know if it's any good or anything, > > but that's what i've got! > > > > ----- Original Message ----- > > From: "Matthew FitzGerald" <fit...@ho...> > > To: <dev...@li...> > > Sent: Saturday, November 25, 2000 12:45 PM > > Subject: Re: [Dev-C++] Help - Newbee > > > > > > > Yo Peter, I began learning at www.cprogramming.com but then later on I > > > purchased the book "The Beginners guide to C++" By Oleg Yareshenko. > Other > > > than a few outdated syntax problems (These can be overlooked easily > > > considering the quality of instruction this book provides) it is an > > awesome > > > book in my opinion! > > > > > > ----- Original Message ----- > > > From: Peter Johnson <poi...@ho...> > > > To: <dev...@li...> > > > Sent: Friday, November 24, 2000 3:48 PM > > > Subject: Re: [Dev-C++] Help - Newbee > > > > > > > > > > Thanks for that.. i'll check it out soon oh and Matthew how did you > > learn > > > > it?? Using what? > > > > If anyone else has any other online tutorials or books could they > please > > > > send me the addy. > > > > It would greatly appreciated. > > > > Peter > > > > > > > > ----- Original Message ----- > > > > From: <bis...@bt...> > > > > To: <dev...@li...> > > > > Sent: Thursday, November 23, 2000 10:50 PM > > > > Subject: RE: [Dev-C++] Help - Newbee > > > > > > > > > > > > > www.icce.rug.nl/docs/cplusplus/cplusplus.html > > > > > > > > > > might be a good place to start for C++. Use need to know some C > > > > beforehand, > > > > > however. > > > > > Try 'The C Programming Language' by K&R. Not available online > > > > unfortunately. > > > > > A search for 'C tutorial' in google.com might help. > > > > > > > > > > - Biswa. > > > > > > > > > > > -----Original Message----- > > > > > > From: Peter Johnson [mailto:poi...@ho...] > > > > > > Sent: 23 November 2000 11:25 > > > > > > To: dev-cpp-users > > > > > > Subject: [Dev-C++] Help - Newbee > > > > > > > > > > > > > > > > > > Hey, > > > > > > I've just kinda wandered on into C++ and to tell you the truth i > > have > > > > > > absolutely no idea how to do anything. Alright i know it's a > > > > > > programming > > > > > > language and you can create windows applictions and consoles > > > > > > etc. But i > > > > > > wouldn't know the first thing to go about learning it. I was > > > > > > wondering if > > > > > > anyone knew of any really good and simple online tutorials or > > > > > > the best way > > > > > > to learn. I don't know any coding. I do know HTML (not that > > > > > > that's any help) > > > > > > and a little Visual Basic but not enough to really understand what > > i'm > > > > > > crapping on about. Your help would be much appreciated. > > > > > > Thanks, Peter > > > > > > _______________________________________________ > > > > > > Dev-cpp-users mailing list > > > > > > Dev...@li... > > > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > > > > > _______________________________________________ > > > > > Dev-cpp-users mailing list > > > > > Dev...@li... > > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > > > _______________________________________________ > > > > Dev-cpp-users mailing list > > > > Dev...@li... > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
From: Joe B. <jo...@cy...> - 2000-12-04 15:49:13
|
Please don't send any more e-mails @ my address. ----- Original Message -----Please don't send any more e-mails @ my = address.=20 From: Matthew FitzGerald=20 To: dev...@li...=20 Sent: Thursday, November 30, 2000 1:05 AM Subject: Re: [Dev-C++] Keep the good work up ! Wow, thanks! I'm glad you like the newsgroup. I am not as active a = member as some, but that made me feel good inside! ----- Original Message -----=20 From: softnasolutions-ltd.fsbusiness.co.uk=20 To: dev...@li...=20 Sent: Wednesday, November 29, 2000 10:57 AM Subject: [Dev-C++] Keep the good work up ! Hi all, my name is Napoleon and i'm new to C++ (i only know a bit of = Cobol and i've dveloped an employee pay roll program with it once but = that was about 2 years ago). I just want to say that i'm very impressed = with members of this group. The way knowledge is freely shared is = amazing. =20 I've been most impressed with the speed with which questions are = answered and the patience with which it is done. Thank you all and keep = up the good work. You are the best !!. =20 Napoleon. |
From: Joe B. <jo...@cy...> - 2000-12-04 15:48:31
|
Please don't send any more e-mails @ my address. ----- Original Message ----- From: GPL <gp...@ya...> To: <dev...@li...> Sent: Thursday, November 30, 2000 9:18 AM Subject: [Dev-C++] Problems with Dev C++ 4 > Hi everybody ! > I have winME and problems with Dev-c++ 4 and 4.01 : > with dev c++ 4, i very often had an out of memory error i could not exit > from, now that's the same but with an 'illegal pointer operation'. How > could I avoid this since when it occurs, i can't save nor exit from dev c++ > which makes me VERY angry. Thank you > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Joe B. <jo...@cy...> - 2000-12-04 15:48:18
|
Please don't send any more e-mails @ my address. ----- Original Message -----=20 From: lavi=20 To: dev...@li...=20 Sent: Wednesday, November 29, 2000 11:44 PM Subject: [Dev-C++] Just Check Hi all, My name is Joe and I=92m new to C++ and this forum. I have just sent this E mail to check address and say HLO. Thanks Joe. |
From: Joe B. <jo...@cy...> - 2000-12-04 15:48:08
|
Please don't send any more e-mails @ my address. ----- Original Message -----=20 From: lavi=20 To: dev...@li...=20 Sent: Wednesday, November 29, 2000 11:44 PM Subject: [Dev-C++] Just Check Hi all, My name is Joe and I=92m new to C++ and this forum. I have just sent this E mail to check address and say HLO. Thanks Joe. |
From: Joe B. <jo...@cy...> - 2000-12-04 15:48:07
|
Please don't send any more e-mails @ my address. ----- Original Message -----=20 From: softnasolutions-ltd.fsbusiness.co.uk=20 To: dev...@li...=20 Sent: Wednesday, November 29, 2000 8:57 PM Subject: [Dev-C++] Keep the good work up ! Hi all, my name is Napoleon and i'm new to C++ (i only know a bit of = Cobol and i've dveloped an employee pay roll program with it once but = that was about 2 years ago). I just want to say that i'm very impressed = with members of this group. The way knowledge is freely shared is = amazing. =20 I've been most impressed with the speed with which questions are = answered and the patience with which it is done. Thank you all and keep = up the good work. You are the best !!. =20 Napoleon. |
From: Joe B. <jo...@cy...> - 2000-12-04 15:47:59
|
Please don't send any more e-mails @ my address. ----- Original Message -----=20 From: loll=20 To: dev...@li...=20 Sent: Friday, December 01, 2000 12:02 AM Subject: [Dev-C++] Re: Icons Are you trying to put the icon in the title bar or just load one = to put somewhere inside the dialog box? im trying to put one in the dialog window somewhere: this code: ICON "myIcon",500,20,10,20,20,SS_SUNKEN | WS_BORDER brings up a bordered area for the icon but no icon inside it 500 is the resouce ID of the icon defined at the top of the resouce = file: 500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE = "C:/DEV-C++/Icon/Documentation.ico" Thanks Lawrence=20 |
From: Kuriyama H. <hs...@ho...> - 2000-12-03 15:19:51
|
#include <conio.c> then textcolor(whatever number); the numbers define which color will appear.(the list is in conio.h) Hsutaro >From: JESSE SALAS <sec...@ya...> >Reply-To: dev...@li... >To: dev...@li... >Subject: [Dev-C++] text color >Date: Sun, 3 Dec 2000 06:16:12 -0800 (PST) > > Hello i am a beginer in C++ and taking a class and I >have to do a class project and i need to know how to >make the text color change, flash or even bigger in a >console. > >can any one please help? > > -jese > > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Shopping - Thousands of Stores. Millions of Products. >http://shopping.yahoo.com/ >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |