dev-cpp-users Mailing List for Dev-C++ (Page 99)
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: lordSauron <lor...@gm...> - 2005-11-21 00:23:13
|
Perhaps we should actually make it in C++ and then use some open-source cross-platform UI library, like FLTK or something... I've always wanted to see if it'd be possible to make a really cool editor that used nothing but OpenGL to render the whole thing, so that it'd be like a window that doesn't even call win32 stuff at all, but I'm just fantasizing so if I'm speaking outside of reality just ignore me. |
|
From: Mark R. <mar...@ma...> - 2005-11-20 23:03:57
|
I wasn't aware that it was Delphi. Bummer indeed. Time perhaps to look at some other tools. /m |
|
From: Per W. <pw...@ia...> - 2005-11-20 21:48:08
|
The biggest problem with Dev-C++ is the Delphi part. A lot of people would have sent in bug fixes and patches with new features instead of bug reports and wish lists if C++ had been used. /Per W On Sun, 20 Nov 2005, Josh Matthews wrote: > I do not believe much (if any) development work is being done on Dev-C++ any > more. I do know that one of the developers is now working on the > Code::Blocks project, an IDE very much like Dev-C++ except it is written in > C++/wxwidgets and quite popular. > > On 11/20/05, Scott <fre...@ve...> wrote: > > > > > I'd like to join in the coding fray, but only if the project is still > > > considered on the table. > > > Anyone? > > > > Be warned, i believe it's made using Delphi.... Ohhh the irony.. :) > > You could try contacting the authors, or try the forum... > > http://www.bloodshed.net/dev/contact.html > > > > Have not seen an update in almost 12months.... > > So i'm not sure how active development would be. > > > > Cheers, > > Scott. > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > > Register for a JBoss Training Course. Free Certification Exam > > for All Training Attendees Through End of 2005. For more info visit: > > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > -- > Cheers, > Josh > |
|
From: Josh M. <mrl...@gm...> - 2005-11-20 19:50:19
|
I do not believe much (if any) development work is being done on Dev-C++ an= y more. I do know that one of the developers is now working on the Code::Blocks project, an IDE very much like Dev-C++ except it is written in C++/wxwidgets and quite popular. On 11/20/05, Scott <fre...@ve...> wrote: > > > I'd like to join in the coding fray, but only if the project is still > > considered on the table. > > Anyone? > > Be warned, i believe it's made using Delphi.... Ohhh the irony.. :) > You could try contacting the authors, or try the forum... > http://www.bloodshed.net/dev/contact.html > > Have not seen an update in almost 12months.... > So i'm not sure how active development would be. > > Cheers, > Scott. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- Cheers, Josh |
|
From: Rob A. <rob...@gm...> - 2005-11-20 13:55:33
|
http://www.mingw.org/MinGWiki/index.php/gcc http://sourceforge.net/project/showfiles.php?group_id=3D2435 I dug a bit further. -R On 11/20/05, Rob Andrews <rob...@gm...> wrote: > http://www.mingw.org/ should, in theory, have this information. My > attempt to find it between sips of coffee was not successful, but you > may fare better. > > -Rob > > On 11/20/05, Scott <fre...@ve...> wrote: > > > > I'm using the latest version of Bloodshed, that comes with Mingw/GCC 3.= 42 > > > > Does anyone know if a later version exists? |
|
From: Rob A. <rob...@gm...> - 2005-11-20 13:47:22
|
http://www.mingw.org/ should, in theory, have this information. My attempt to find it between sips of coffee was not successful, but you may fare better. -Rob On 11/20/05, Scott <fre...@ve...> wrote: > > I'm using the latest version of Bloodshed, that comes with Mingw/GCC 3.42 > > Does anyone know if a later version exists? > > Is there an actual benefit, or would i likely cause more trouble > than it would be worth (if it ain't broke don't fix it?) > > Cheers, > Scott. > > |
|
From: Scott <fre...@ve...> - 2005-11-20 10:01:11
|
I'm using the latest version of Bloodshed, that comes with Mingw/GCC = 3.42 Does anyone know if a later version exists?=20 Is there an actual benefit, or would i likely cause more trouble than it would be worth (if it ain't broke don't fix it?) Cheers, Scott. |
|
From: Scott <fre...@ve...> - 2005-11-20 09:46:27
|
> I'd like to join in the coding fray, but only if the project is still > considered on the table. > Anyone? Be warned, i believe it's made using Delphi.... Ohhh the irony.. :) You could try contacting the authors, or try the forum... http://www.bloodshed.net/dev/contact.html Have not seen an update in almost 12months.... So i'm not sure how active development would be. Cheers, Scott. |
|
From: Einar F. <en...@co...> - 2005-11-20 07:33:38
|
Mark Richards wrote: >I'm a heavy user of DevC++ and generally love it. However, wondering if the >developers or general community has a roadmap of where DEVC++ might be >headed in future? > >I'd like to join in the coding fray, but only if the project is still >considered on the table. > >Anyone? > > I'm in the same boat as you on that one. -- Einar Forselv |
|
From: Mark R. <ma...@ma...> - 2005-11-19 19:09:35
|
I'm a heavy user of DevC++ and generally love it. However, wondering if the developers or general community has a roadmap of where DEVC++ might be headed in future? I'd like to join in the coding fray, but only if the project is still considered on the table. Anyone? |
|
From: <jrg...@ya...> - 2005-11-19 18:26:54
|
Hello everybody. Here's the background story. I love to play scrabble online (for you = Swedes who reads this, visit www.betapet.com if you want to play). I have = written a small program that helps me to keep track of which the remaining letters = are (click on the link for a screenshot: http://www.holdemprogs.com/Tracker.jpg). As it is now I manually either = have to type in the letters or use my mouse by clicking on the letters when I want to reduce the number of unknowns. During the game I more or less = always at some point forget to update my little program forcing me to reset and reenter all of the known letters in the input field. I thought if I = could automate the process of updating it would be great. As far as I know = there are two ways of finding out which the new letters being put on the board are: 1) Using some sort of sniffer (I think that's what it called) that = listens to the communication between the browser and the game server=20 or 2) Image processing by comparing screenshots. I personally have no idea how to do the first, so I'm going to go with = the second option, using some sort of neural network. I could of course take a screenshot of my whole screen and do the = processing from there, but I feel that that will cause unessecary load to the CPU. = This bring me to the real reason of this letter. I would like to identify the game window by getting the text in the title bar and when a positive identification is made find out the size and position of the window. = This is not something I can do directly in Java but I think it could be done by using JNI (Java Native Interface). Unfortunatelly my limited knowledge = of C and C++ doesn't include Windows API programming so I'm totally stuck. At Planet Source Code I found a piece of code, see http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3D657= 3&lng WId=3D3, that alters the window text of the active window by adding the current memory status. From this code I could figure out that the = function GetWindowText(=85) was used for getting the text in the title bar, but I = din't get much of the rest. I would really appreciate if any of you guys could help me out by = writing source code for the below methods. string[] getWindowTextForAllWindows() int getX(string windowText) int getY(string windowText) int getWidth(string windowText) int getHeight(string windowText) bool isWindowActive(string windowText) // If the window isn't in front there's no use in taking a screenshot A thousand thanks in advance and best regards, J=F6rgen Persson |
|
From: Reid T. <rei...@at...> - 2005-11-18 13:29:30
|
Dimitar wrote: > hello, I use DEV C++. I don't have a big experiance with programing in C > and with compilators like this. I want to ask you, can i seperate the > code in meny files in the progect yes , and what part of the code is visible > in main.cpp? as little or as much as you want, within reason. How can I use other files with code in my progect? google on C/C++ tutorials/online books there are many examples. > |
|
From: Dimitar <dim...@gm...> - 2005-11-18 11:04:34
|
hello, I use DEV C++. I don't have a big experiance with programing in C and with compilators like this. I want to ask you, can i seperate the code in meny files in the progect, and what part of the code is visible in main.cpp? How can I use other files with code in my progect? -- S uvajenie, Dimitar Stoyanov Dimitrov ICQ: 106627618 GSM: 0898 633 704 |
|
From: Wolf P. <pe...@re...> - 2005-11-15 08:10:35
|
Hi,
you can place Objects into given memory space using the "new placement
syntax" (google-ready).
You have simply to add the following "method" to a class (or struct):
class Placeable {
public:
//...
void* operator new( size_t, void* buf ) { return buf; }
//...
};
this "method" is the overriden new-operator with placement semantics.
For instantiation you have to write:
extern void* address; // your memory section
Placeable* placed = new (address) YourStruct(/*constructor arguments if
any*/); // constructor with arguments
Placeable* placed = new (address) YourStruct; // constructor without
arguments
note you must not use the delete-operator on the object created by
overriden new.
for clenup (if needed) you have to define a destructor that you call
explicitly:
placed->Placeable::~Placeable();
Good luck,
Wolf Peuker
Ruchika Singh schrieb:
>Hi:
>
>I am fairly new to C++. I have in my ld script defined a memory section,
>".my_mem_section". How can I force one of my global C++ object to be allocated
>memory in this section when instantiated??
>
>Thanks in advance
>-R.
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by:
>Tame your development challenges with Apache's Geronimo App Server. Download
>it for free - -and be entered to win a 42" plasma tv or your very own
>Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
|
|
From: Alfred P. R. <al...@ya...> - 2005-11-14 04:04:35
|
This installation should not have modified the registry, to my knowledge. So it would be a simple matter to just delete the top dev-cpp folder and also all of the flies that are in the documents and settings section of the c: drive (if that is where it is installed). So search for "dev*" files from the root of the c: drive (c:\) and delete those files. There should be 4 files, including a cache file and an ini file, if I remember correctly. So when you find devcpp.ini (I'm doing this from memory, not from a current installation, BTW, so the name may be off), look in that folder for further files that are related to dev-cpp, and delete those. With respect to version 4.9.x, it attempts to register itself in the registry, but works fine without that occurring. In the system configuration I use, the registry is write protected at my privilege level, so I'm not sure what dev-cpp is trying to write in the registry. ryu hyabusa <he...@ho...> wrote: I accidentally downloaded the Dev-C++ 4 (It doesn´t have support for windows XP.) When I should have downloaded Dev-C++ 5 for windows XP. Now when i try to uninstall it I get a message that reads (Unable to locate the installation logfile `c:\program\DeIsL1.isu`. Uninstallation will not continue.) But the DeIsL1.isu file is in my Dev-C++ folder,wy cant the uninstaller locate the file?? I have to uninstall this program before I install the Dev-C++ 5 so i would really appreciate if someone could help me with this. Eddie <snip> Alfred P. Reaud |
|
From: Eric E. <eri...@sb...> - 2005-11-13 21:45:07
|
I am running dev cpp 4 on Win xp pro and it works fine. Eric -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of ryu = hyabusa Sent: Sunday, November 13, 2005 3:16 PM To: dev...@li... Subject: [Dev-C++] I cant uninstall Dev-C++ I accidentally downloaded the Dev-C++ 4 (It doesn=B4t have support for = windows XP.) When I should have downloaded Dev-C++ 5 for windows XP. Now when i = try=20 to uninstall it I get a message that reads (Unable to locate the=20 installation logfile `c:\program\DeIsL1.isu`. Uninstallation will not=20 continue.) But the DeIsL1.isu file is in my Dev-C++ folder,wy cant the=20 uninstaller locate the file?? I have to uninstall this program before I install the Dev-C++ 5 so i = would=20 really appreciate if someone could help me with this. Eddie _________________________________________________________________ Nyhet! Hotmail direkt i Mobilen! http://mobile.msn.com/ ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. = Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: ryu h. <he...@ho...> - 2005-11-13 21:17:06
|
I accidentally downloaded the Dev-C++ 4 (It doesn´t have support for windows XP.) When I should have downloaded Dev-C++ 5 for windows XP. Now when i try to uninstall it I get a message that reads (Unable to locate the installation logfile `c:\program\DeIsL1.isu`. Uninstallation will not continue.) But the DeIsL1.isu file is in my Dev-C++ folder,wy cant the uninstaller locate the file?? I have to uninstall this program before I install the Dev-C++ 5 so i would really appreciate if someone could help me with this. Eddie _________________________________________________________________ Nyhet! Hotmail direkt i Mobilen! http://mobile.msn.com/ |
|
From: ryu h. <he...@ho...> - 2005-11-13 16:39:13
|
Hi im having problems with my dev-c++, when i try to uninstall it. UninstallShield opens to close after a few seconds then i get a message that reads (unable to locate the installation logfile `c:\program\DeIsL1.isv`.Uninstallation will not continue) Someone that can help me with this problem?? Edd _________________________________________________________________ Nyhet! Hotmail direkt i din Mobil! http://mobile.msn.com/ |
|
From: Ruchika S. <ru...@ec...> - 2005-11-13 03:26:35
|
Hi: I am fairly new to C++. I have in my ld script defined a memory section, ".my_mem_section". How can I force one of my global C++ object to be allocated memory in this section when instantiated?? Thanks in advance -R. |
|
From: Per W. <pw...@ia...> - 2005-11-12 13:12:18
|
Forgot to write the:
printf("Number = %llu\n",n);
integer alternative when building on a unix box.
/Per W
On Sat, 12 Nov 2005, Per Westermark wrote:
> I don't think that you can.
>
> When using Dev-C++, your program will be linked against the M$ C run-time
> libraries, and to my knowledge they don't support the long double type.
>
> You have to typecast your variable to double before printing it - giving
> up the extra range and precision.
>
> When printing 64-bit integers, you have a similar problem.
>
> Using gcc on a unix machine you can write:
> printf("Number = %Lu\n",n);
>
> Using gcc on Windows, you have to emit a 64-bit integer using:
> printf("Number = %I64u\n",n);
>
> /Per W
>
> On Sat, 12 Nov 2005, James Maddison wrote:
>
> > Can someone tell me how to use printf to display a long double type
> > variable. I've tried code along the lines of:
> >
> > long double ld=1.0L;
> > printf("%Lg", ld);
> >
> > but that displays "0" rather than "1". I've tried similar with all other
> > combinations of modifier/type that
> > I can think of.
>
>
|
|
From: Per W. <pw...@ia...> - 2005-11-12 13:08:49
|
I don't think that you can.
When using Dev-C++, your program will be linked against the M$ C run-time
libraries, and to my knowledge they don't support the long double type.
You have to typecast your variable to double before printing it - giving
up the extra range and precision.
When printing 64-bit integers, you have a similar problem.
Using gcc on a unix machine you can write:
printf("Number = %Lu\n",n);
Using gcc on Windows, you have to emit a 64-bit integer using:
printf("Number = %I64u\n",n);
/Per W
On Sat, 12 Nov 2005, James Maddison wrote:
> Can someone tell me how to use printf to display a long double type
> variable. I've tried code along the lines of:
>
> long double ld=1.0L;
> printf("%Lg", ld);
>
> but that displays "0" rather than "1". I've tried similar with all other
> combinations of modifier/type that
> I can think of.
|
|
From: James M. <mad...@ya...> - 2005-11-12 12:42:57
|
Can someone tell me how to use printf to display a long double type
variable. I've tried code along the lines of:
long double ld=1.0L;
printf("%Lg", ld);
but that displays "0" rather than "1". I've tried similar with all other
combinations of modifier/type that
I can think of.
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
|
|
From: Adam W. <ada...@ya...> - 2005-11-12 04:24:25
|
Go to http://www.wotsit.org/ and search for MPG > Date: Fri, 11 Nov 2005 13:42:22 -0800 (PST) > From: Aurimas Cernius <au...@ya...> > To: Dev...@li... > Subject: [Dev-C++] Mpeg video file > > Hello, > > Does anyone know, where could I find a detailed > information about mpeg video files. I'm thinking about > such things as changing file format and so on. > Thanks. > > Su pagarba, > Aurimas Èernius > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
|
From: Aurimas C. <au...@ya...> - 2005-11-11 21:42:33
|
Hello, Does anyone know, where could I find a detailed information about mpeg video files. I'm thinking about such things as changing file format and so on. Thanks. Su pagarba, Aurimas Èernius __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
|
From: Fernando L. <fer...@gm...> - 2005-11-10 17:23:48
|
I looked it up in Stan Kelly-Bootle's "The Devil's DP Dictionary" and
I found this:
recursion: see recursion
Now serously, in programming recursion means that a function can call
itself. The power example is a good one, another classic one is to say
that
factorial(n) =3D n * factorial (n - 1)
This could go on endlessly if it were not for the fact that 0! =3D 1, so
a recursive factorial function would call itself until its argument
became 0, where it would return 1 and unwind the chain of calls.
A similar reasoning could be applied to analizing sentences, or
traversing the leaves of a binary tree.
Regards,
On 11/8/05, Robert Alatalo <ral...@gm...> wrote:
> Recursion works by solving a simpler problem. In the case above you know
> that if you raise any number to the 1st power then you get that number ba=
ck,
> Otherwise you can get the result by multipling the number by the number
> raised to the initial power minus one.
>
> So if I am going to raise 10 to the third power ie pow(10,3)
>
> pow(10,3)=3D10*pow(10,2)
> pow(10,2)=3D10*pow(10,1)
> pow(10,1)=3D10
>
> So... now backing up as each function returns you get
> pow(10,3)=3D10*10*10
>
>
>
>
> On 11/8/05, Richard Gelling <use...@ya...> wrote:
> > Hi,
> >
> > I am working my way through Sams Teach yourself c++ in 21 days and am
> > having a bit fof difficulty with recursion, could someone explain to me
> > how the following oiece of code works:
> >
> > #ifdef HAVE_CONFIG_H
> > #include <config.h>
> > #endif
> >
> > #include <iostream>
> > #include <cstdlib>
> >
> > using namespace std;
> >
> > int toPowerOf( int , int );
> > int main(int argc, char *argv[])
> > {
> > int powerOf, number, result;
> > cout << "\nEnter the number: ";
> > cin >> number;
> > cout << "\nEnter the exponential: ";
> > cin >> powerOf;
> >
> > result =3D toPowerOf( number, powerOf );
> >
> > cout << "\nThe result of " << number << " to the power of " <<
> > powerOf << " is " << result << endl;
> >
> > return 0;
> > }
> > int toPowerOf( int number, int powerOf )
> > {
> > if ( powerOf =3D=3D 1 )
> > return number;
> > else
> > {
> > cout << "number is: " << number << " and the power of is " <<
> > powerOf << endl;
> > return ( number * toPowerOf( number, powerOf - 1 ));
> > }
> > }
> >
> > If someone could explain how the recusion side workd I would be
> > gratefull, as I don't seem to be getting anywhere.
> >
> > Thanks a lot
> >
> > Richard G.
> >
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server.
> Download
> > it for free - -and be entered to win a 42" plasma tv or your very own
> > Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE:
> http://www23.brinkster.com/noicys/devcpp/ub.htm
> >
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
--
Fernando Lichtschein
li...@fi...
|