dev-cpp-users Mailing List for Dev-C++ (Page 458)
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: <tcq...@so...> - 2003-01-11 14:02:52
|
Hi
I am a Chinese.I have learn c++ a short time.
Can you tell me what book can I read?
Oh ,I have a problem how can I use the "time" class?
Thank you ! Yours' li
|
|
From: Mike C. <mc...@ad...> - 2003-01-11 12:46:04
|
I'm a complete newbie to devcpp, though not to c/c++. I've downloaded = and installed the windows distro from mysql. When I compile the the = test.c program from the mysql distro the gnu compiler doesn't generate = underscores on function names. OK, so I've found a switch in the = documentation that's supposed to turn on leading underscores (-f = leading-underscored, funnily enough). However the 3.2.x gnu I have = doesn't seem to want to do this...what am I missing here... TIA Michael |
|
From: blakjak <bl...@si...> - 2003-01-11 11:04:59
|
Jordi, Did you link the library in correctly? To link in library libmath3d.a you should use the option -lmath3d BlakJak :] -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Jordi Rovira i Bonet Sent: 11 January 2003 16:54 To: dev...@li... Subject: [Dev-C++] Linking with a static library produced in dev-c++ Hello, I've build the library math3d (math3d.sf.net) succesfully in Dev-C++ producing a nice libmath3d.a. Now whenever i try to link a simple program that uses any class in this library i get an error like the one below. I'm using the latest beta version of DevC++ i think. The problem is so simple that i don't know how to approach it, and as i think it might be a common problem i'm posting. g++.exe -c test/main.cpp -o test/main.o -I"D:/Programes/Dev-Cpp/include" -I"D:/jordi/math3d-0.3.0" -I"D:/Programes/Dev-Cpp/include/c++" -I"D:/Programes/Dev-Cpp/include/c++" g++.exe test/main.o -o "Test.exe" -L"D:/Programes/Dev-Cpp/lib" math3d.a -I"D:/Programes/Dev-Cpp/include" -I"D:/jordi/math3d-0.3.0" -I"D:/Programes/Dev-Cpp/include/c++" -I"D:/Programes/Dev-Cpp/include/c++" test/main.o(.text+0xa2):main.cpp: undefined reference to `_imp___ZN6Math3dlsERSoRKNS_3M3dE' make.exe: *** [Test.exe] Error 1 Execution terminated I would appreciate any hints. (jordi) ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <cg...@wo...> - 2003-01-11 10:36:34
|
The resource editor in version 4.0 was not complete and you couldn't=20 do many things, in the beta 5 versions it has dissapeared. I don't=20 remember it (I only tried to use it twice when the very first days of my=20 efforts to learn win programming), so wait to another answer if you want=20 use it. What I use now, and some others use too is the resource editor=20 =66rom lcc-win32 compiler, you can download the resource editor alone fro= m=20 www.objectcentral.org. FABIAN HUENUMAN wrote: > Hi! I was try to create an input dialog box with the resource editor of > dev-c++ 4.0. Then editor show a dialog box where I put the title of=20 > my dialog box, > the font, the style font, and others, but nothing like textedit or=20 > something > than let me perform some input. The quetion is, some bady knows how=20 > can i do this? > > When i look the resource file there is an empty BEGIN-END in > the declaration of my dialog. The other question is, what commands can = I > put there (betwen BEGiN END)? > > > > _________________________________________________________________ > MSN Fotos: la forma m=E1s f=E1cil de compartir e imprimir fotos.=20 > http://photos.msn.es/support/worldwide.aspx > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <cg...@wo...> - 2003-01-11 10:21:10
|
You use mingw 2.0.0, isn't it? Now -fnative-struct is an obsolete option. You shall use -mms-bitfields. Daniel Nicault wrote: >Hi and many good things for this new ear, > >I creta a simple window with winglade and genereate c code. >Then, i create a new project with dev c++ and devhex for wingtk. > >when I compile, I take an error for non reconised option >-fnative-code,and if I hide this option, the program is generated but i >take an error at run time that say it's possible I ommit the >-fnatice-code option.... > >Can you help me? > >Regards, > > > |
|
From: Jordi R. i B. <igu...@us...> - 2003-01-11 08:53:36
|
Hello, I've build the library math3d (math3d.sf.net) succesfully in Dev-C++ producing a nice libmath3d.a. Now whenever i try to link a simple program that uses any class in this library i get an error like the one below. I'm using the latest beta version of DevC++ i think. The problem is so simple that i don't know how to approach it, and as i think it might be a common problem i'm posting. g++.exe -c test/main.cpp -o test/main.o -I"D:/Programes/Dev-Cpp/include" -I"D:/jordi/math3d-0.3.0" -I"D:/Programes/Dev-Cpp/include/c++" -I"D:/Programes/Dev-Cpp/include/c++" g++.exe test/main.o -o "Test.exe" -L"D:/Programes/Dev-Cpp/lib" math3d.a -I"D:/Programes/Dev-Cpp/include" -I"D:/jordi/math3d-0.3.0" -I"D:/Programes/Dev-Cpp/include/c++" -I"D:/Programes/Dev-Cpp/include/c++" test/main.o(.text+0xa2):main.cpp: undefined reference to `_imp___ZN6Math3dlsERSoRKNS_3M3dE' make.exe: *** [Test.exe] Error 1 Execution terminated I would appreciate any hints. (jordi) |
|
From: <st...@xs...> - 2003-01-11 06:19:49
|
You might try these flags. gcc 3.x, instead of -fnative-struct use -mms- bitfields. I'm not sure which version you have installed, but it might help. -Steven Quoting Daniel Nicault <dan...@fr...>: > Hi and many good things for this new ear, > > I creta a simple window with winglade and genereate c code. > Then, i create a new project with dev c++ and devhex for wingtk. > > when I compile, I take an error for non reconised option > -fnative-code,and if I hide this option, the program is generated but i > take an error at run time that say it's possible I ommit the > -fnatice-code option.... > > Can you help me? > > Regards, > > -- > Daniel Nicault > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Daniel N. <dan...@fr...> - 2003-01-11 02:44:00
|
Hi and many good things for this new ear, I creta a simple window with winglade and genereate c code. Then, i create a new project with dev c++ and devhex for wingtk. when I compile, I take an error for non reconised option -fnative-code,and if I hide this option, the program is generated but i take an error at run time that say it's possible I ommit the -fnatice-code option.... Can you help me? Regards, -- Daniel Nicault |
|
From: Zachary U. <ne...@st...> - 2003-01-10 22:10:22
|
EMACS forever! :) Zach At 12:29 PM 1/10/03, Shayne Kasai wrote: >gVim is an editor similar to "vi" commonly found on *nix machines. As a >warning, be prepared to learn the quirky key bindings for vim, but keep in >mind that the reason why vi and vim is powerful is because of it's key >bindings (for example, if I wanted to go to line 23, I just type colon 23 ><enter>). > >dev-c++ is just an IDE to gcc so yes, you can write all your code in vim >and a) open it up the sources in the dev-c++ ide and compile it, or b) >compile everything by hand. > >Anyways, I use vim in X and I like it quite a bit. Once you get used to >it, I find it less quirky than the usual IDE's ;) > >-- Shayne Zachary Uram John 3:16 <>< |
|
From: <or...@vp...> - 2003-01-10 19:55:02
|
Hello Matthews! > Actually, I've been working on one for the past few weeks. Want me to send > it over to you? I would be very grateful. Thank you. -- Greetings, Balázs |
|
From: <or...@vp...> - 2003-01-10 19:52:48
|
Hello list! Eric Engler wrote this to me, so I will forward it to the list. -- Balázs -------- Original Message -------- Subject: Re: [Dev-C++] again with my question about a good interface Date: Fri, 10 Jan 2003 10:20:28 -0800 (PST) From: Eric Engler <eng...@ya...> To: OROSZI_BalXzs <or...@vp...> Colin Peters page on Windows programming: http://webclub.kcom.ne.jp/ma/colinp/win32/index.html I like this URL also: http://www.mingw.org/docs.shtml Eric |
|
From: Eric E. <eng...@ya...> - 2003-01-10 18:30:04
|
>Actually, I've been working on one for the past few >weeks. Want me to send it over to you? Could you email it to me, also? Eric Engler eng...@ya... __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: Luigi S. <gi...@li...> - 2003-01-10 18:09:57
|
On Thu, Jan 09, 2003 at 11:58:16PM -0800, Senthil Kumaran wrote: > Hi All, > I have always wondered about this Debugger gdb. > Can any one help me with it. > How to use in command line interface as well. > After using gcc. > Thanks for your help and assistance. > Regards, > Senthil Hi! Sometime ago I answered a similar question, so did some mining in my mail folder and came up with a sort of tiny tutorial written in the form of an HTML file. Not willing to post HTML code to the list, I placed it on the site: www.gisan.freeurl.com (once there follow the link to the "gdb tutorial") The information related to the integrated debugger is now obsolete (I wrote the document when DevC++ 4.9.3.0 was around), however the rest should still be valid. -- >> gisan >> |
|
From: Shayne K. <err...@ne...> - 2003-01-10 17:30:04
|
gVim is an editor similar to "vi" commonly found on *nix machines. As a warning, be prepared to learn the quirky key bindings for vim, but keep in mind that the reason why vi and vim is powerful is because of it's key bindings (for example, if I wanted to go to line 23, I just type colon 23 <enter>). dev-c++ is just an IDE to gcc so yes, you can write all your code in vim and a) open it up the sources in the dev-c++ ide and compile it, or b) compile everything by hand. Anyways, I use vim in X and I like it quite a bit. Once you get used to it, I find it less quirky than the usual IDE's ;) -- Shayne http://www.shaynekasai.com On Fri, 10 Jan 2003, A. S. Budden wrote: > Hi all, > > I've been using M$ VC++ for quite a long time now and have got annoyed > with it for many different reasons as you might imagine, so I started > looking through sf.net to find an alternative, preferably that uses (or > can be configured to use) Vim or gVim as it's editor. > > Is this possible with dev-cpp? > > I tried searching the archives and found a question and answer in there > with an appropriate title, but the archive site said that the entry > didn't exist so I couldn't actually read the message. > > Cheers, > > Al > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: blakjak <bl...@si...> - 2003-01-10 14:31:49
|
Most of us on the SourceForge Bloodshed forum (http://sourceforge.net/forum/forum.php?forum_id=3D48211) have sites where we pass each other files. There are plenty of them for f= ree on the web. For example if you are in the UK you can try www.portland.co.uk BlakJak :] -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Daniel Glenfield Sent: 10 January 2003 22:03 To: or...@vp...; dev...@li... Subject: Re: [Dev-C++] attachments Post code in the body, providing it is not too big. Then only post entire files as attachments if requested. >From: OROSZI Bal=E1zs <or...@vp...> >To: dev...@li... >Subject: [Dev-C++] attachments >Date: Fri, 10 Jan 2003 14:02:32 +0100 > >Greetings to everyone on the list! > >May attachments be posted to this list, or should it be avoided? > >-- >Greetings, > Bal=E1zs > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=3Dfeatures/virus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 See! http://www.vasoftware.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2003-01-10 14:04:10
|
Post code in the body, providing it is not too big. Then only post entire files as attachments if requested. >From: OROSZI Balázs <or...@vp...> >To: dev...@li... >Subject: [Dev-C++] attachments >Date: Fri, 10 Jan 2003 14:02:32 +0100 > >Greetings to everyone on the list! > >May attachments be posted to this list, or should it be avoided? > >-- >Greetings, > Balázs > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus |
|
From: Esteban V. <est...@ho...> - 2003-01-10 13:47:21
|
To pass objects by reference is the better way. You don´t know how many data
members were declarated in the class declaration. So if you pass by value
you force stack to copy each of the data members of the class. Moreover, I
recommend you to pass objects by reference with the const key to give the
less stack overload and the better protection of the public data member of
the class. This is
void MyFunction ( const OtherClass & className)
{
....
}
When you pass or recive by value an object, the copy constructor is
automatically called to give and receive data members to and from the stack
with the time overload of construct and destroy temporary objects. Whe you
pass by reference nothing of this happens and you only put in the stack the
object memory direction. To learn more about this I recommend you to see
operator overloading in any C++ text book. In this chapter you will see both
pass by reference and receive by reference and value objects.
With respect to integers, depends of you.
Best regards, Esteban
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <dev...@li...>
Sent: Friday, 10 January, 2003 6:19
Subject: [Dev-C++] Passing by value or reference to constructor
initialiation list
I would like to know whether it is better to pass the following string
objects and integer by value or reference to my constructor initialisation
list.
Vehicle::Vehicle
(
String& VehicleName,
String& VehicleType,
int SerialNumber
):
mVehicleName(VehicleName),
mVehicleType(VehicleType),
mSerialNumber(SerialNumber)
{
}
an integer is only 4 bytes I think, so by value would be fine, but what
about the string objects? Can I pass by reference?
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: <or...@vp...> - 2003-01-10 13:02:02
|
Greetings to everyone on the list! May attachments be posted to this list, or should it be avoided? -- Greetings, Balázs |
|
From: <cg...@wo...> - 2003-01-10 11:18:33
|
Dev-Cpp is an editor just as vim, the compiler is mingw. The two dev you find are just the IDE alone and the IDE plus the mingw compiler, so if you want use vim as editor go to www.mingw.org and download it. It shall work with vim: it's the gcc port for windows; however I've never tried it. A. S. Budden wrote: >Hi all, > >I've been using M$ VC++ for quite a long time now and have got annoyed >with it for many different reasons as you might imagine, so I started >looking through sf.net to find an alternative, preferably that uses (or >can be configured to use) Vim or gVim as it's editor. > >Is this possible with dev-cpp? > >I tried searching the archives and found a question and answer in there >with an appropriate title, but the archive site said that the entry >didn't exist so I couldn't actually read the message. > >Cheers, > >Al > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: Ioannis V. <no...@ho...> - 2003-01-10 10:32:00
|
If you want to avoid the construction and destruction of temporary object= s (the function arguments) then pass by reference. Usually for non-built in types we pass by reference.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D =0D -------Original Message-------=0D =0D From: Daniel Glenfield=0D Date: =D0=E1=F1=E1=F3=EA=E5=F5=DE, 10 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003= 12:05:21 =EC=EC=0D To: ner...@my...; dev...@li...=0D Subject: Re: [Dev-C++] Passing by value or reference to constructorinitialiation list=0D =0D Well I think passing by reference is better because the objects could be = =0D large, which means more on the stack and thus more overhead, but are ther= e =0D any side effects to passing by reference to the constructor in this way?=0D =0D =0D >From: Banjo Donila <ner...@my...>=0D >To: Daniel Glenfield <sp...@ho...>=0D >Subject: Re: [Dev-C++] Passing by value or reference to =0D >constructorinitialiation list=0D >Date: 10 Jan 2003 17:49:28 +0800=0D >=0D >it depends on what you want to happen=0D >=0D >On Fri, 2003-01-10 at 17:19, Daniel Glenfield wrote:=0D > >=0D > >=0D > > I would like to know whether it is better to pass the following strin= g=0D > > objects and integer by value or reference to my constructor =0D >initialisation=0D > > list.=0D > >=0D > > Vehicle::Vehicle=0D > > (=0D > > String& VehicleName,=0D > > String& VehicleType,=0D > > int SerialNumber=0D > > ):=0D > > mVehicleName(VehicleName),=0D > > mVehicleType(VehicleType),=0D > > mSerialNumber(SerialNumber)=0D > > {=0D > > }=0D > >=0D > > an integer is only 4 bytes I think, so by value would be fine, but wh= at=0D > > about the string objects? Can I pass by reference?=0D > >=0D > >=0D > > _________________________________________________________________=0D > > Protect your PC - get McAfee.com VirusScan Online=0D > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963=0D > >=0D > >=0D > >=0D > > -------------------------------------------------------=0D > > This SF.NET email is sponsored by:=0D > > SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 See= !=0D > > http://www.vasoftware.com=0D > > _______________________________________________=0D > > Dev-cpp-users mailing list=0D > > Dev...@li...=0D > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=0D > >=0D =0D =0D _________________________________________________________________=0D Add photos to your e-mail with MSN 8. Get 2 months FREE*. =0D http://join.msn.com/?page=3Dfeatures/featuredemail=0D =0D =0D =0D -------------------------------------------------------=0D This SF.NET email is sponsored by:=0D SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 See!=0D http://www.vasoftware.com=0D _______________________________________________=0D Dev-cpp-users mailing list=0D Dev...@li...=0D TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 |
|
From: Jaap de W. <wo...@Ne...> - 2003-01-10 10:04:01
|
Because both string members are members to reference you have to construct
using a reference.
If the members where of type String istead of String& you had a choice, but
in that case I also should prefer passing a reference, not because of the
size of the string, but because when passing an object, it must be
constructed and initialized, with takes more time.
> -----Original Message-----
> From: Daniel Glenfield [mailto:sp...@ho...]
> Sent: Friday, January 10, 2003 10:19 AM
> To: dev...@li...
> Subject: [Dev-C++] Passing by value or reference to constructor
> initialiation list
>
>
>
>
> I would like to know whether it is better to pass the
> following string
> objects and integer by value or reference to my constructor
> initialisation
> list.
>
> Vehicle::Vehicle
> (
> String& VehicleName,
> String& VehicleType,
> int SerialNumber
> ):
> mVehicleName(VehicleName),
> mVehicleType(VehicleType),
> mSerialNumber(SerialNumber)
> {
> }
>
> an integer is only 4 bytes I think, so by value would be
> fine, but what
> about the string objects? Can I pass by reference?
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Daniel G. <sp...@ho...> - 2003-01-10 10:03:12
|
Well I think passing by reference is better because the objects could be
large, which means more on the stack and thus more overhead, but are there
any side effects to passing by reference to the constructor in this way?
>From: Banjo Donila <ner...@my...>
>To: Daniel Glenfield <sp...@ho...>
>Subject: Re: [Dev-C++] Passing by value or reference to
>constructorinitialiation list
>Date: 10 Jan 2003 17:49:28 +0800
>
>it depends on what you want to happen
>
>On Fri, 2003-01-10 at 17:19, Daniel Glenfield wrote:
> >
> >
> > I would like to know whether it is better to pass the following string
> > objects and integer by value or reference to my constructor
>initialisation
> > list.
> >
> > Vehicle::Vehicle
> > (
> > String& VehicleName,
> > String& VehicleType,
> > int SerialNumber
> > ):
> > mVehicleName(VehicleName),
> > mVehicleType(VehicleType),
> > mSerialNumber(SerialNumber)
> > {
> > }
> >
> > an integer is only 4 bytes I think, so by value would be fine, but what
> > about the string objects? Can I pass by reference?
> >
> >
> > _________________________________________________________________
> > Protect your PC - get McAfee.com VirusScan Online
> > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|
|
From: Marc H. <ma...@e-...> - 2003-01-10 09:48:37
|
Hi, This link contains all the commands taken by Windres.exe (Cygwin) http://www.cygwin.com/cygwin-ug-net/windres.html _____________________________ Marc Heiligers -----Original Message----- From: FABIAN HUENUMAN [mailto:fhu...@ho...]=20 Sent: 10 January 2003 01:20 AM To: dev...@li... Subject: [Dev-C++] again with my question about a good interface Here I go again!. Hi again! This is the code for a Dialog window from a resource file, it = is=20 generated when I edit that file and i choose create Dialog Window from the Resource file editor's = toolbar.=20 In the two last lines is the empty BEGIN-END that i told you. The question were (and are): What commands can i put there? How can costruct a Dialog than let me get some String as input, using = this=20 resource editor? Where can i find some help for this? Please, i'm waiting for yours answers. //Dialog window declaration #include <windows.h> 100 DIALOG 0, 0, 200, 200 STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME CAPTION "Dialog title" FONT 8,"Helv" BEGIN //empty begin-end END _________________________________________________________________ MSN. M=E1s =DAtil Cada D=EDa http://www.msn.es/intmap/ |
|
From: Daniel G. <sp...@ho...> - 2003-01-10 09:20:59
|
I would like to know whether it is better to pass the following string
objects and integer by value or reference to my constructor initialisation
list.
Vehicle::Vehicle
(
String& VehicleName,
String& VehicleType,
int SerialNumber
):
mVehicleName(VehicleName),
mVehicleType(VehicleType),
mSerialNumber(SerialNumber)
{
}
an integer is only 4 bytes I think, so by value would be fine, but what
about the string objects? Can I pass by reference?
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|
|
From: Daniel G. <sp...@ho...> - 2003-01-10 09:17:49
|
Many thanks, that is a great explanation! >From: Per Westermark <pw...@ia...> >To: Daniel Glenfield <sp...@ho...> >CC: dev...@li... >Subject: Re: [Dev-C++] Why don't you ever compare floats for equality? >Date: Thu, 9 Jan 2003 15:08:33 +0100 (CET) > >Because ((1.0 / 3.0) * 3.0) == 1.0 isn't guaranteed to be true because of >round-off errors in evaluation. > >Floating point nubmers are able to store a number of significant digits - >about 7-8 for float and 15 for double. However, only some numbers are >possible to store exactly in a floating point variable. Most values are >only possible to store as approximations, i.e. rounded or truncated to the >number of available significant digits. > >You need an infinite number of digits to store the value 1/3 for example. >Also, note that while we normally think of our floats and doubles as >decimal values, they are stored in binary format in the computer, >resulting in conversion errors when switching number base, i.e. when >reading in or printing a number. > >/Per W > >On Thu, 9 Jan 2003, Daniel Glenfield wrote: > > > I read that you should never compare floating point numbers for >equality. I > > was wondering why? > > > > > > > > > > > > _________________________________________________________________ > > Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > _________________________________________________________________ MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail |