dev-cpp-users Mailing List for Dev-C++ (Page 186)
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: Noorez K. <coo...@ho...> - 2004-08-29 17:29:51
|
for functions in dlls, do I need to use the __declspec (dllexport) for both the declaration and definition of the function to compile the dll correctly or is it ok in just one place. If it's just one place where do I need it? _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Eric <eri...@cl...> - 2004-08-29 01:07:37
|
There was text there have another look, or convert it to plain text
format how it should be :-)
----- Original Message -----
From: "Scott Simontis" <age...@co...>
To: "Eric" <eri...@cl...>
Cc: <dev...@li...>
Sent: Sunday, August 29, 2004 10:58 AM
Subject: Re: [Dev-C++] unable to run hello world.cpp
Your message displayed as white on white text, so many people probably
just assumed it was a blank message. Also, I don't think you mentioned
the portability issues of a system() statement, or that the console
works well too.
Eric wrote:
>that's why I suggested
> at the end of the program ask for some useless variable.
>
>
>
>
>----- Original Message -----
>From: "Scott Simontis" <age...@co...>
>To: "Isaac E. Wagner" <is...@wa...>
>Cc: <dev...@li...>
>Sent: Sunday, August 29, 2004 5:48 AM
>Subject: Re: [Dev-C++] unable to run hello world.cpp
>
>
>Just a word of warning, this doesn't always work on some systems. It
>will work perfectly on Windows and a lot of other operating systems,
but
>unless portability is your primary concern, you shouldn't have to
worry.
>You can also just run it from the DOS prompt, and it will not exit at
>the end so you will have time to read the output.
>Isaac E. Wagner wrote:
>
>
>
>>Try adding the following line to the end of your program:
>>
>>system("pause");
>>
>>
>>----- Original Message -----
>>From: . .
>>To: dev...@li...
>>Sent: Saturday, August 28, 2004 3:22 AM
>>Subject: [Dev-C++] unable to run hello world.cpp
>>
>>
>>Every time I try to run hello world.cpp the dos window closes as soon
>>
>>
>as it
>
>
>>opens, I know this is covered in the help section... but I couldnt get
>>
>>
>it to
>
>
>>work. ANy help would be appreciated.
>>
>>
>>Do you Yahoo!?
>>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>>
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by BEA Weblogic Workshop
>>FREE Java Enterprise J2EE developer tools!
>>Get your free copy of BEA WebLogic Workshop 8.1 today.
>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>>
>>
>>
>>
>>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.745 / Virus Database: 497 - Release Date: 27-Aug-04
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 27-Aug-04
|
|
From: Scott S. <age...@co...> - 2004-08-28 22:58:15
|
Your message displayed as white on white text, so many people probably
just assumed it was a blank message. Also, I don't think you mentioned
the portability issues of a system() statement, or that the console
works well too.
Eric wrote:
>that's why I suggested
> at the end of the program ask for some useless variable.
>
>
>
>
>----- Original Message -----
>From: "Scott Simontis" <age...@co...>
>To: "Isaac E. Wagner" <is...@wa...>
>Cc: <dev...@li...>
>Sent: Sunday, August 29, 2004 5:48 AM
>Subject: Re: [Dev-C++] unable to run hello world.cpp
>
>
>Just a word of warning, this doesn't always work on some systems. It
>will work perfectly on Windows and a lot of other operating systems, but
>unless portability is your primary concern, you shouldn't have to worry.
>You can also just run it from the DOS prompt, and it will not exit at
>the end so you will have time to read the output.
>Isaac E. Wagner wrote:
>
>
>
>>Try adding the following line to the end of your program:
>>
>>system("pause");
>>
>>
>>----- Original Message -----
>>From: . .
>>To: dev...@li...
>>Sent: Saturday, August 28, 2004 3:22 AM
>>Subject: [Dev-C++] unable to run hello world.cpp
>>
>>
>>Every time I try to run hello world.cpp the dos window closes as soon
>>
>>
>as it
>
>
>>opens, I know this is covered in the help section... but I couldnt get
>>
>>
>it to
>
>
>>work. ANy help would be appreciated.
>>
>>
>>Do you Yahoo!?
>>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>>
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by BEA Weblogic Workshop
>>FREE Java Enterprise J2EE developer tools!
>>Get your free copy of BEA WebLogic Workshop 8.1 today.
>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>>
>>
>>
>>
>>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.745 / Virus Database: 497 - Release Date: 27-Aug-04
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
>
>
|
|
From: Eric <eri...@cl...> - 2004-08-28 19:34:58
|
that's why I suggested
at the end of the program ask for some useless variable.
----- Original Message -----
From: "Scott Simontis" <age...@co...>
To: "Isaac E. Wagner" <is...@wa...>
Cc: <dev...@li...>
Sent: Sunday, August 29, 2004 5:48 AM
Subject: Re: [Dev-C++] unable to run hello world.cpp
Just a word of warning, this doesn't always work on some systems. It
will work perfectly on Windows and a lot of other operating systems, but
unless portability is your primary concern, you shouldn't have to worry.
You can also just run it from the DOS prompt, and it will not exit at
the end so you will have time to read the output.
Isaac E. Wagner wrote:
>Try adding the following line to the end of your program:
>
>system("pause");
>
>
>----- Original Message -----
>From: . .
>To: dev...@li...
>Sent: Saturday, August 28, 2004 3:22 AM
>Subject: [Dev-C++] unable to run hello world.cpp
>
>
>Every time I try to run hello world.cpp the dos window closes as soon
as it
>opens, I know this is covered in the help section... but I couldnt get
it to
>work. ANy help would be appreciated.
>
>
>Do you Yahoo!?
>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 27-Aug-04
|
|
From: Jingles P. <jin...@ya...> - 2004-08-28 18:54:45
|
Thanks, this might help a bit. And I am considering getting VC6 so it might help then too. Also any other Suggestions and recomendations would be good too. --- "Isaac E. Wagner" <is...@wa...> wrote: > Look at > http://www.functionx.com/vcnet/libraries/win32dll.htm > for a good > example. This short tutorial is written for Visual > C++, but the actual > examples of code are useful for any programming > environment. > > > ----- Original Message ----- > From: "Jingles Puffs" <jin...@ya...> > To: <dev...@li...> > Sent: Friday, August 27, 2004 9:03 PM > Subject: [Dev-C++] DLL Help Wanted! > > > > Hello, > > > > I've been working on a game for Dev-C++, and I'd > like > > to use a DLL. But I don't really know how, so I > was > > wondering if anybody here knows of any good > Tutorial > > or Information Sites that has stuff dealing with > the > > creation of DLLs. > > I also wouldn't really mind if the site just has > > Examples or anything, just some info on the > Creation > > of DLLs. Thanks. > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic > Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 > today. > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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 > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic > Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 > today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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 > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush |
|
From: Scott S. <age...@co...> - 2004-08-28 17:47:51
|
Just a word of warning, this doesn't always work on some systems. It
will work perfectly on Windows and a lot of other operating systems, but
unless portability is your primary concern, you shouldn't have to worry.
You can also just run it from the DOS prompt, and it will not exit at
the end so you will have time to read the output.
Isaac E. Wagner wrote:
>Try adding the following line to the end of your program:
>
>system("pause");
>
>
>----- Original Message -----
>From: . .
>To: dev...@li...
>Sent: Saturday, August 28, 2004 3:22 AM
>Subject: [Dev-C++] unable to run hello world.cpp
>
>
>Every time I try to run hello world.cpp the dos window closes as soon as it
>opens, I know this is covered in the help section... but I couldnt get it to
>work. ANy help would be appreciated.
>
>
>Do you Yahoo!?
>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
>
>
|
|
From: Per W. <pw...@ia...> - 2004-08-28 14:54:17
|
A variable number of parameters. The most common use is the printf() class of functions, where the parameter immediately before the ellipsis (the three dots) is a formatting string, specifying how many parameters that will follow, and of what type they are. However, you might write your own functions doing just about anything. An example: int int_sum(int count,...); void vec_add(Vec& res,int count,...); However, the use of an ellipsis is most useful when the individual "extra" parameters have varying types, since the above two examples could have been modified to have two parameters - a count and an array of integer or Vec items. The functions need to use the macros va_start(), va_arg(), and va_end() to walk through the extra parameters. However, the function never know how many parameters and of what type it has received. It is completely up to he caller to adhere to expected behaviour. /Per W On Sat, 28 Aug 2004 ab...@el... wrote: > Dear users, > > Reading the function prototypes in, for example, wchar.h, I saw the > following line: > > int wprintf (const wchar_t*, ...); > > Anybody knows what is the meaning of theese three dots? > > Regards > Andre Barros > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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 > |
|
From: <ab...@el...> - 2004-08-28 14:04:41
|
Dear users, Reading the function prototypes in, for example, wchar.h, I saw the following line: int wprintf (const wchar_t*, ...); Anybody knows what is the meaning of theese three dots? Regards Andre Barros ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
|
From: Isaac E. W. <is...@wa...> - 2004-08-28 13:29:00
|
Look at http://www.functionx.com/vcnet/libraries/win32dll.htm for a good example. This short tutorial is written for Visual C++, but the actual examples of code are useful for any programming environment. ----- Original Message ----- From: "Jingles Puffs" <jin...@ya...> To: <dev...@li...> Sent: Friday, August 27, 2004 9:03 PM Subject: [Dev-C++] DLL Help Wanted! > Hello, > > I've been working on a game for Dev-C++, and I'd like > to use a DLL. But I don't really know how, so I was > wondering if anybody here knows of any good Tutorial > or Information Sites that has stuff dealing with the > creation of DLLs. > I also wouldn't really mind if the site just has > Examples or anything, just some info on the Creation > of DLLs. Thanks. > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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 > > |
|
From: Isaac E. W. <is...@wa...> - 2004-08-28 13:11:20
|
Try adding the following line to the end of your program:
system("pause");
----- Original Message -----
From: . .
To: dev...@li...
Sent: Saturday, August 28, 2004 3:22 AM
Subject: [Dev-C++] unable to run hello world.cpp
Every time I try to run hello world.cpp the dos window closes as soon as it
opens, I know this is covered in the help section... but I couldnt get it to
work. ANy help would be appreciated.
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
|
|
From: Eric <eri...@cl...> - 2004-08-28 08:26:58
|
you need to do a pause=20 or at the end of the program ask for some useless variable.=20 ----- Original Message -----=20 From: . .=20 To: dev...@li...=20 Sent: Saturday, August 28, 2004 7:22 PM Subject: [Dev-C++] unable to run hello world.cpp Every time I try to run hello world.cpp the dos window closes as soon as = it opens, I know this is covered in the help section... but I couldnt = get it to work. ANy help would be appreciated. -------------------------------------------------------------------------= ------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 27-Aug-04 |
|
From: . . <red...@ya...> - 2004-08-28 07:22:38
|
Every time I try to run hello world.cpp the dos window closes as soon as it opens, I know this is covered in the help section... but I couldnt get it to work. ANy help would be appreciated. --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. |
|
From: Jingles P. <jin...@ya...> - 2004-08-28 01:03:41
|
Hello, I've been working on a game for Dev-C++, and I'd like to use a DLL. But I don't really know how, so I was wondering if anybody here knows of any good Tutorial or Information Sites that has stuff dealing with the creation of DLLs. I also wouldn't really mind if the site just has Examples or anything, just some info on the Creation of DLLs. Thanks. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
|
From: <gen...@ya...> - 2004-08-28 00:12:08
|
hey all, this mainly concerns the developers of the Dev-C++ IDE. i was wondering if it would be possible to use Scintilla (http://www.scintilla.org) as the text component for the editor, instead of (what i think is) a customised rich text field, since Scintilla provides syntax highlighting already. it would be a major change, but as Scintilla also formats your code as you type, it might be worth it. TIA dype ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com |
|
From: <or...@vp...> - 2004-08-27 16:14:06
|
Danny Angelo Carminati Grein wrote: > Hi, Im trying to use dev-c++ to generate release binaries 3 projects:= =20 > library dll , executable, aplication dll ... > =20 >=20 > When I try to compile the first project (Library DLL), it gives thes= e=20 > errors: >=20 > - -- > Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecog= nized > Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecog= nized > Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecog= nized > Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecog= nized=20 > - -- Those are not errors, but only warnings. Nevertheless, I also got them in= one of my=20 projects, and I would also like to know what they mean. Anyone? -- Greetings, Bal=E1zs |
|
From: Scott S. <age...@co...> - 2004-08-27 11:42:15
|
For learning C, there is The C Programming Language by K&R. Probably the best guide out there to C! Also, I would not recommend Sam's Teach Yourself C++ in.. books. You can/'t learn a language in 24 hours or even 30 days. It takes a long time to learn a language. I have been working on C/C++ for about 1 3/4 years, and just now consider myself an intermediate programmer. Different people take different times though. Probably the only ones out there who can learn a language in a week are super hackers like ESR and Stallman. Anyways, The C++ Programming Language is a good book to have. It is written by Bjarne Stroustrup, creator of the C++ language. The special edition has a hard cover and a few new appendices, but costs more than the 3rd edition. However, if you flip through C++ books a lot, special edition will help. If you can get through Effective C++, you should be apply to get through The C++ Programming Language. Also, check out More Effective C++ by Scott Myers if you read the first. Roger Furer wrote: > Aloha from Honolulu, > I've been using "Sams Teach Yourself C++ In 24 Hours" by Jesse > Liberty (Sams Publishing) . I also have "C++ The Complete Reference" > by Herbert Schildt (McGraw-Hill/Osborne) . Teach Yourself... came > with a CD containing the source code for all the lessons as well as > the DevC++ compiler. I found the lessons to be easy to understand. I > like having the Reference though, so I can look up a specific word > that the lesson book may not have been clear about. Like having a > dictionary on hand while reading a textbook. I also found a book > called "Effective C++ Second Edition" by Scott Meyers > (Addison-Wesley). This is more advanced, but describes how and why > things happen as they do, because of language specifications and > compiler implimentation. It provides many examples of how not to do > things, and why not; as well as how to do things and why. > Hope this helps, > Roger > > Sérgio Neves wrote: > >> Hello, >> I'm writing to ask if somebody knows a C tutorial to start learning >> this language, which teach me to create simple programs running on >> ms. dos and programs running on windows. If somebody knows, could you >> tell me please? >> >> Best regards >> >> Sérgio Neves > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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: Per W. <pw...@ia...> - 2004-08-27 08:59:04
|
I haven't the time to discuss your stream problem - there are a _large_
number of questions and answers about buffering and switching between
input and output in the archives of this list. Anyway, a quick note: don't
mix stream input/output with FILE-based input/output. The two methods have
their own internal implementation - including input/output caching - and
don't know about each other.
However, I wanted to comment a bit about your class implementation.
1) You have a class where each object is > 5kB large.
2) Quiz::createQuestion() is not static, i.e. you need a Quiz object to
call this member function.
3) Quiz::createQuestion() creates a new Quiz object as autovariable, and
later returns it.
You should rewrite createQuestion to either work directly on itself (the
'this' object), or to be static and perform all work on a created object.
When passing a Quiz object as a parameter, you should pass it as a
reference, instead of as value. Your Quiz::writeQuestion() method requires
that a new Quiz object is created as parameter.
Note that objects - just as C structs - have size and making extra copies
of them requires more memory and a lot of copying of information between
the copies. In the C++ case, assignment operators, copy constructors etc
might contain a lot of code that gets run.
One other thing. You haven't written any constructor for the Quiz class.
It is almost alwas a good idea to write your own constructor, instead of
letting the compiler supply a default constructor.
A third thing. You have static variable 'type'. Why static? If the
information is needed for processing of the question, it should be a
non-static member of the Quiz class. Then the writeQuestion method don't
need 'type' as input parameter.
Obviously Quiz::writeQuestion shouldn't need a quiz, a type etc as input
parameters. Since Quiz::writeQuestion is a method of the Quiz class, it
should write out itself.
/Per W
On Thu, 26 Aug 2004, Noorez Kassam wrote:
> #ifndef quiz_h //quiz.h
> #define quiz_h
> class Quiz
> {
> private:
> char question[1000];
> char answerA[1000];
> char answerB[1000];
> char answerC[1000];
> char answerD[1000];
> char answerT;
> char answerF;
> char actual;
>
> public:
> static int questionNumb;
> static int type;
> Quiz createQuestion();
> void writeQuestion(Quiz ques, int type,char* quizName);
> };
> #endif
> //quiz.h
>
> #include <iostream>
> #include <fstream>
> #include <cstdlib>
> #include <conio.h>
> #include <myfs.h>//this is mine, connects to my static lib
> #include <conio.h>
> using namespace std;
> using namespace myf;
>
> #include "Quiz.h"
>
> int Quiz::questionNumb =3D 1;
> int Quiz::type =3D 0;
>
> Quiz Quiz::createQuestion()
> {
> Quiz ques;
> cls();//lib function
> cout << "What kind of question do you want question " <<
> Quiz::questionNumb
> << " to be?\n";
> real1:
> cout << "A. Multiple choice or B. True/False [a\\b] ";
> char choice;
> choice=3Dgetche();//this char that is inputted
> if(!(choice =3D=3D 'a' || choice =3D=3D 'b'))
> {
> cout << "\nChoice must be a or b\n";
> goto real1;
> }
> if(choice =3D=3D 'a')
> {
> type =3D 1;
> cout << "\n\nType the question in\n\n";
> cin.getline(ques.question,1000); //shows up hear as if i typed it
> but didn't push enter
> cout << "Type in answer A. ";
> cin.getline(ques.answerA,1000);
> cout << "Type in answer B. ";
> cin.getline(ques.answerB,1000);
> cout << "Type in answer C. ";
> cin.getline(ques.answerC,1000);
> cout << "Type in answer D. ";
> cin.getline(ques.answerD,1000);
> real2:
> cout << "Give us the real answer [a\\b\\c\\d] ";
> ques.actual=3Dgetche();
> if(!(ques.actual =3D=3D 'a' || ques.actual =3D=3D 'b'
> || ques.actual =3D=3D 'c' || ques.actual =3D=3D 'd') )
> {
> cout << "\nReal answer must be a,b,c or d\n";
> goto real2;
> }
> }
> if(choice =3D=3D 'b')
> {
> type =3D 2;
> cout << "\n\nType in the statement\n\n";
> cin.getline(ques.question,1000); //same hear
> real3:
> cout << "Give us the real answer [t\\f] ";
> ques.actual=3Dgetche();
> if(!(ques.actual =3D=3D 't' || ques.actual =3D=3D 'f'))
> {
> cout << "\nReal answer must be t or f\n";
> goto real3;
> }
> }
> return ques;
> }
>
> void Quiz::writeQuestion(Quiz ques, int type, char* quizName)
> {
> ofstream out_file(quizName,ios::app);
> if(type =3D=3D 1)
> {
> out_file << "~\n" << questionNumb << ". " << ques.question << '\n=
'
> << '\n';
> out_file << "A. " << ques.answerA << '\n';
> out_file << "B. " << ques.answerB << '\n';
> out_file << "C. " << ques.answerC << '\n';
> out_file << "D. " << ques.answerD << '\n';
> out_file << '~' << ques.actual << '\n' << '|';
> }
> if(type =3D=3D 2)
> {
> out_file << "~\n" << questionNumb << ". " << ques.question << '\=
n';
> out_file << "True or False [t\\f]\n";
> out_file << '~' << ques.actual << '\n' << '|';
> }
> }
>
> on the marked lines i put some errors that i am getting in my program.
>
> _________________________________________________________________
> Take charge with a pop-up guard built on patented Microsoft=AE SmartScree=
n
> Technology.
> http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D=
1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines
> Start enjoying all the benefits of MSN=AE Premium right now and get the
> first two months FREE*.
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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: Mark S. <mar...@li...> - 2004-08-27 08:50:51
|
when all else fails use astyle http://astyle.sourceforge.net/ a code beautifier & set it up in tools (this is what I do 'cause I can't get the auto indenting to work how I want it either. regards mark -----Original Message----- From: Len Philpot [mailto:le...@ph...] Sent: 27 August 2004 06:09 To: dev...@li... Subject: [Dev-C++] How to configure auto-indent? I'm using Dev-C++ 4.9.9.0 (phenomenal product, by the way!) and have a question about the behavior of autoindent and how to adjust it. Maybe I'm just overlooking something, but... First off, I'm using spaces, not tabs (although, I'd /prefer/ tabs, more below [1]), a tab size of 4, no SmartTabs, Autoindent enabled, cursor past EOL/EOF both disabled, trim trailing spaces enabled. Let's say I have this : case WM_COMMAND: { Right after the {, I hit Enter and the cursor goes down one line and over 4 spaces, out in "virtual space". If I type a character, the leading space is filled with spaces, as expected. If I backspace, and then tab over to the column of the opening brace and type a character, it appears in colum one and I have to "tab it over" to the right column. Apparently, hitting Tab after an autoindent has taken place often doesn't insert anything into the file, tab or space. It just moves over in virtual space. Apparently there are two things at play here, maybe just something I don't understand, but - 1) tabs aren't (always) treated as whitespace and 2) the autoindent doesn't go where I'd /prefer/[2] it go. Is there any way to modify this? [1] I'd really rather use real tabs, with the value still at 4, but that causes the enhanced home key behavior to break, since apparently it doesn't see the tabs as whitespace over which to "cycle" (for lack of a better term). The cursor just sits on the first non-space character regardless of how many time you hit Home. What I'd like is fairly simple - 1. Hitting Tab just inserts n (4 in my case) spaces (or preferably a real tab character) from the current column, adjusted to line up as you'd expect, backfilling to start-of-line if the cursor wasn't at column 1 when the Tab key was hit. and... 2. Hitting Enter simply inserts a line and tabs the cursor over to the column of the first non-whitespace character on the line above. That's all... [2] I realize we all have preferences, which is why I'm looking for a way to customize this, rather than simply complain about it. :-) OR --- Is there way to use an external editor? I know, that kinda defeats the purpose of an IDE, but I thought I'd at least ask... Thanks! -- Len Philpot ><> le...@ph... http://philpot.org/ ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. |
|
From: Roger F. <ra...@ha...> - 2004-08-27 07:56:12
|
Aloha from Honolulu, I've been using "Sams Teach Yourself C++ In 24 Hours" by Jesse=20 Liberty (Sams Publishing) . I also have "C++ The Complete Reference" by=20 Herbert Schildt (McGraw-Hill/Osborne) . Teach Yourself... came with a=20 CD containing the source code for all the lessons as well as the DevC++=20 compiler. I found the lessons to be easy to understand. I like having=20 the Reference though, so I can look up a specific word that the lesson=20 book may not have been clear about. Like having a dictionary on hand=20 while reading a textbook. I also found a book called "Effective C++=20 Second Edition" by Scott Meyers (Addison-Wesley). This is more=20 advanced, but describes how and why things happen as they do, because of=20 language specifications and compiler implimentation. It provides many=20 examples of how not to do things, and why not; as well as how to do=20 things and why. Hope this helps, Roger S=E9rgio Neves wrote: > Hello, > I'm writing to ask if somebody knows a C tutorial to start learning=20 > this language, which teach me to create simple programs running on ms.=20 > dos and programs running on windows. If somebody knows, could you tell=20 > me please? > =20 > Best regards > =20 > S=E9rgio Neves |
|
From: Noorez K. <coo...@ho...> - 2004-08-27 05:55:31
|
#ifndef quiz_h //quiz.h
#define quiz_h
class Quiz
{
private:
char question[1000];
char answerA[1000];
char answerB[1000];
char answerC[1000];
char answerD[1000];
char answerT;
char answerF;
char actual;
public:
static int questionNumb;
static int type;
Quiz createQuestion();
void writeQuestion(Quiz ques, int type,char* quizName);
};
#endif
//quiz.h
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <conio.h>
#include <myfs.h>//this is mine, connects to my static lib
#include <conio.h>
using namespace std;
using namespace myf;
#include "Quiz.h"
int Quiz::questionNumb = 1;
int Quiz::type = 0;
Quiz Quiz::createQuestion()
{
Quiz ques;
cls();//lib function
cout << "What kind of question do you want question " <<
Quiz::questionNumb
<< " to be?\n";
real1:
cout << "A. Multiple choice or B. True/False [a\\b] ";
char choice;
choice=getche();//this char that is inputted
if(!(choice == 'a' || choice == 'b'))
{
cout << "\nChoice must be a or b\n";
goto real1;
}
if(choice == 'a')
{
type = 1;
cout << "\n\nType the question in\n\n";
cin.getline(ques.question,1000); //shows up hear as if i typed it
but didn't push enter
cout << "Type in answer A. ";
cin.getline(ques.answerA,1000);
cout << "Type in answer B. ";
cin.getline(ques.answerB,1000);
cout << "Type in answer C. ";
cin.getline(ques.answerC,1000);
cout << "Type in answer D. ";
cin.getline(ques.answerD,1000);
real2:
cout << "Give us the real answer [a\\b\\c\\d] ";
ques.actual=getche();
if(!(ques.actual == 'a' || ques.actual == 'b'
|| ques.actual == 'c' || ques.actual == 'd') )
{
cout << "\nReal answer must be a,b,c or d\n";
goto real2;
}
}
if(choice == 'b')
{
type = 2;
cout << "\n\nType in the statement\n\n";
cin.getline(ques.question,1000); //same hear
real3:
cout << "Give us the real answer [t\\f] ";
ques.actual=getche();
if(!(ques.actual == 't' || ques.actual == 'f'))
{
cout << "\nReal answer must be t or f\n";
goto real3;
}
}
return ques;
}
void Quiz::writeQuestion(Quiz ques, int type, char* quizName)
{
ofstream out_file(quizName,ios::app);
if(type == 1)
{
out_file << "~\n" << questionNumb << ". " << ques.question << '\n'
<< '\n';
out_file << "A. " << ques.answerA << '\n';
out_file << "B. " << ques.answerB << '\n';
out_file << "C. " << ques.answerC << '\n';
out_file << "D. " << ques.answerD << '\n';
out_file << '~' << ques.actual << '\n' << '|';
}
if(type == 2)
{
out_file << "~\n" << questionNumb << ". " << ques.question << '\n';
out_file << "True or False [t\\f]\n";
out_file << '~' << ques.actual << '\n' << '|';
}
}
on the marked lines i put some errors that i am getting in my program.
_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|
|
From: Len P. <le...@ph...> - 2004-08-27 05:09:07
|
I'm using Dev-C++ 4.9.9.0 (phenomenal product, by the way!) and have
a question about the behavior of autoindent and how to adjust it.
Maybe I'm just overlooking something, but...
First off, I'm using spaces, not tabs (although, I'd /prefer/ tabs,
more below [1]), a tab size of 4, no SmartTabs, Autoindent enabled,
cursor past EOL/EOF both disabled, trim trailing spaces enabled.
Let's say I have this :
case WM_COMMAND:
{
Right after the {, I hit Enter and the cursor goes down one line and
over 4 spaces, out in "virtual space". If I type a character, the
leading space is filled with spaces, as expected. If I backspace, and
then tab over to the column of the opening brace and type a
character, it appears in colum one and I have to "tab it over" to the
right column.
Apparently, hitting Tab after an autoindent has taken place often
doesn't insert anything into the file, tab or space. It just moves
over in virtual space. Apparently there are two things at play here,
maybe just something I don't understand, but - 1) tabs aren't
(always) treated as whitespace and 2) the autoindent doesn't go where
I'd /prefer/[2] it go.
Is there any way to modify this?
[1] I'd really rather use real tabs, with the value still at 4, but
that causes the enhanced home key behavior to break, since apparently
it doesn't see the tabs as whitespace over which to "cycle" (for lack
of a better term). The cursor just sits on the first non-space
character regardless of how many time you hit Home.
What I'd like is fairly simple -
1. Hitting Tab just inserts n (4 in my case) spaces (or preferably a
real tab character) from the current column, adjusted to line up as
you'd expect, backfilling to start-of-line if the cursor wasn't at
column 1 when the Tab key was hit.
and...
2. Hitting Enter simply inserts a line and tabs the cursor over to
the column of the first non-whitespace character on the line above.
That's all...
[2] I realize we all have preferences, which is why I'm looking for a
way to customize this, rather than simply complain about it. :-)
OR --- Is there way to use an external editor? I know, that kinda
defeats the purpose of an IDE, but I thought I'd at least ask...
Thanks!
--
Len Philpot ><>
le...@ph... http://philpot.org/
|
|
From: Danny A. C. G. <val...@bi...> - 2004-08-27 00:09:06
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Im trying to use dev-c++ to generate release binaries 3 projects: =20 library dll , executable, aplication dll ... =20 When I try to compile the first project (Library DLL), it gives these=20 errors: =2D -- Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecognized Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecognized Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecognized Warning C:\bitcrafters\src\BCL\project\Warning .drectve `%.*s' unrecognize= d=20 =2D -- What is happening? What I need to compile this DLL? Thanks. =2D --=20 Danny Angelo Carminati Grein Diretor de T.I. Bitcrafters Inc. =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBLkm+3bTZQYPv0SMRAt1pAJ4qVbY/SpT52vX0ts3pxknFNynaGgCgkKop onH5oDmeeBuAeTodel7SVfM=3D =3DNPzi =2D----END PGP SIGNATURE----- |
|
From: Steve J. <ste...@st...> - 2004-08-26 07:43:13
|
All Does anyone know of a help file (either Win help, or HTML) that I can install on the Dev-C++ help menu giving documentation on the Standard Template Library? I have got and installed help files on WxWindows, GCC, Win32 and the GNU C library, but I'm struggling to find anything on STL. Many thanks --=20 ** Steve James ** Email: ste...@st... |
|
From: <sj...@ne...> - 2004-08-26 05:10:40
|
Hello, I'm writing to ask if somebody knows a C tutorial to start learning this = language, which teach me to create simple programs running on ms. dos = and programs running on windows. If somebody knows, could you tell me = please? Best regards S=E9rgio Neves |
|
From: Roger F. <ra...@ha...> - 2004-08-26 04:20:47
|
Aloha from Honolulu, Kiryl, My original email had this: >> First: in "Effective C++", item 15, p. 65: >> "operator= default version C& C::operator=(const C&);" >> The & follows the variable (?). I assumed the "C" following "C & C::operator=(const " was the variable--somehow it must have got lost on you. I understand const is a type def. My major concern was with line 8 (below) >> 8: CAT (const CAT &); // copy constructor But as Per W. pointed out in his reply on 8/24/04 8:49PM : > int my_function(int &); > _doesn't_ have the & last, since there is an "invisible" :) parameter name > following it. It is just a lazy short-form of declaration. That the var is invisible was the info I needed. Regarding "lhs" and "rhs", I was confused because "The Complete Reference C++" never seems to use them. Perhaps he's keeping his code as simple as possible for clarity sake. I continue to find his examples most useful in gaining an understanding of the language. (My background was Pascal through the '80s and early '90s--in MSDOS). My thanks for all your help, Per especially. Mahalo, Roger Kiryl V Mauryshchau wrote: > > "operator= default version C& C::operator=(const &);" > > The & follows the variable (?). > > Are you sure that it follows the variable. Maybe what you think is a > variable in fact is a type definition. Check it. > > > 8: CAT (const CAT &); > > Here, "const CAT" is type, not variable. When you _declare_ some > method, you can omit variable. Like in this case. > > > 27: CAT::CAT(const CAT & rhs) > > Here, "const CAT" is type, and "rhs" is variable/object. As I > mentioned before, when you declare a function or method in the class > (.h file), you may omit the variable/object in declaration. But when > you write a function/method itself in implementation file, then you > specify this variable/object. > > I am pretty sure, that in the first example above, what precedes the > ampersand is type. > > Regards, |