dev-cpp-users Mailing List for Dev-C++ (Page 572)
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: Abhijit S. <mu...@gm...> - 2002-06-14 17:13:55
|
I was just going through the sources of the class libraries in Turbo C++
version 3.0, and found this code. How does the program modify aPtr even
though it says it's a const?
-------CLASSLIB/SOURCE/STRNG.CPP------
String::String( const char *aPtr )
{
if ( aPtr == 0 )
aPtr = "";
len = strlen( aPtr ) + 1;
theString = new char[ len ];
CHECK( theString != 0 );
strcpy( theString, aPtr );
}
--------------------------------------
After seeing this, I tried compiling the following file in MingW, and it did
(with -Wall, no warnings)
--------------------------------------
void do_stuff(const char *buf)
{
if(!buf)
buf = "";
}
int main()
{
do_stuff(0);
return 0;
}
--------------------------------------
How? Doesn't
buf = "";
translate to assign "" to buf?
--------------------------
http://mudeth.tripod.com
|
|
From: <cuo...@iw...> - 2002-06-14 16:12:49
|
In java there is import. But not in C++. In your case you would have to include the followin: #include "FileYouWannaInclude.h" in Main File. You probaly already knew.......http://www.vstore.com/cgi-bin/pagegen/iwonstores/megatron/page.htmlGREAT SHOPPING PLACE!!!!!!!!!!!!!!--- On Fri 06/14, < dev...@li... > wrote:From: [mailto: dev...@li...]To: dev...@li...: Fri 06/14Subject: Dev-cpp-users digest, Vol 1 #819 - 12 msgsSend Dev-cpp-users mailing list submissions tod...@li... subscribe or unsubscribe via the World Wide Web, visithttps://lists.sourceforge.net/lists/listinfo/dev-cpp-usersor, via email, send a message with subject or body 'help' tod...@li... can reach the person managing the list atd...@li... replying, please edit your Subject line so it is more specificthan "Re: Contents of Dev-cpp-users digest..."Today's Topics:1. Export keyword problem (Marcos Carrard)2. Re: superscript for squares (Mac Reiter)3. Re: Export keyword problem (Mac Reiter)4. Re: superscript for squares (Jason Hardman)5. Re: Export keyword problem (Jason Hardman)6. howto construct messages in win32 (Zodiaq)7. Re: superscript for squares (Jason Hardman)8. Re: howto construct messages in win32 (Jason Hardman)9. (no subject) (Nancy Alvarez)10. RE: Export keyword problem (Ioannis Vranos)11. Re: (no subject) (Abhijit Shylanath)12. Linker errors (Greg Elliot)--__--__--Message: 1Date: Thu, 13 Jun 2002 16:46:35 -0300From: Marcos Carrard To: dev...@li...: [Dev-C++] Export keyword problemThis is a multi-part message in MIME format.--------------D34575D5AFBFDC082B7BCB97Content-Type: text/plain; charset=iso-8859-1Content-Transfer-Encoding: quoted-printableX-MIME-Autoconverted: from 8bit to quoted-printable by main.unijui.tche.br id g5DJf7G09596Hi!The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on twomodels of compilation: separation and inclusion. The separation modeldefines a function in a separate file and it becomes available with thekeyword export. I tested this in the Dev and it did not work. Thecompilation result say that the export keyword is not valid and thelinker don=B4t find my function definition. What I can make? The exportkeyword is not available?Thanks,Marcos--------------D34575D5AFBFDC082B7BCB97Content-Type: text/x-vcard; charset=us-ascii;name="carrard.vcf"Content-Description: Card for Marcos CarrardContent-Disposition: attachment;filename="carrard.vcf"Content-Transfer-Encoding: quoted-printableX-MIME-Autoconverted: from 8bit to quoted-printable by main.unijui.tche.br id g5DJf7G09596begin:vcard=20n:Carrard;Marcostel;cell:55-9973-1733tel;fax:55-3332-9100tel;home:55-3333-6556tel;work:55-3332-7100 Ramal 289x-mozilla-html:FALSEurl:www.detec.unijui.tche.br/~carrardorg:Universidade Regional do Noroeste do RS - Uniju=ED;Departamento de Te=cnologiaversion:2.1email;internet:ca...@un...;quoted-printable:;;Rua S=3DE3o Francisco, 501=3D0D=3D0ACx. Postal 561==3D0D=3D0ABairro S=3DE3o Geraldo;Iju=ED;RS;98.700-000;Brasilfn:Marcos Carrardend:vcard--------------D34575D5AFBFDC082B7BCB97----__--__--Message: 2Date: Thu, 13 Jun 2002 15:49:42 -0500To: From: "Mac Reiter" Subject: Re: [Dev-C++] superscript for squares>I could nor figure out how to use superscript for squares (like for example>12 ) in DEV++ IDE . Can you please tell me is there a short cut for doing>it or other method.Unfortunately I am unsure what you are trying to do... "superscript" is atypesetting issue, and unrelated to programming. What is "example 12"? Iam going to assume that you meant:2"like, for example, 1 "If you are viewing this with proportional spaced fonts, I was attempting toplace a "1" with a raised superscripted "2" above it...In an attempt to be useful, I will make a wild assumption and run with it.If it isn't useful, I apologize. If you are trying to raise one number to another power ( "one raised to thesecond power", otherwise known as "one squared" ), the function you want ispow(). In this particular example, it would be "pow(1,2)".IMPORTANT : pow() is a general purpose, floating point routine, capable ofhandling things like "pow(-13.9153, 9513.24351)", and because of that it isextremely slow compared to other methods if you are doing simple powers.If you are truly doing squares, the fastest method is to multiply thenumber by itself... Rather than doing "xsquared = pow(x,2)", just do"xsquared = x*x" and it will run a lot faster. If you are trying to raiseto a higher, but still integral power, (for example, "pow(3511.31451532,17)") there are fast routines for doing that. I found them in introcomputer science books. They involve bit shifting and masking though,which may be more involved that you want to get. If speed isn't a majorissue, just use pow().Mac-_____________________________ /"\Mac Reiter \ / ASCII Ribbon CampaignNomadics, Inc. X Against HTML Mai...@no... / \ (To join the campaign, simply usethis in your signature.)--__--__--Message: 3Date: Thu, 13 Jun 2002 16:38:28 -0500To: dev...@li...: "Mac Reiter" Subject: Re: [Dev-C++] Export keyword problem>The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two>models of compilation: separation and inclusion. The separation model>defines a function in a separate file and it becomes available with the>keyword export. I tested this in the Dev and it did not work. TheI do not have this book available, but in a fair number of years of C andC++ programming, I have never heard of the "export" keyword, except for DLLcreation in Microsoft compilers. The closest I can think of is the"extern" keyword, but it is used to import things from other compilationunits, and it is _not_ needed to get access to functions.Could you give one or more quotes from your book, preferably with smallcode examples if possible?Mac-_____________________________ /"\Mac Reiter \ / ASCII Ribbon CampaignNomadics, Inc. X Against HTML Mai...@no... / \ (To join the campaign, simply usethis in your signature.)--__--__--Message: 4From: "Jason Hardman" To: "Dev-C++" ,"Dane Cannon" Subject: Re: [Dev-C++] superscript for squaresDate: Thu, 13 Jun 2002 23:15:53 +0100How about 2² = 4 etc.You will find that word processors do it by using a smaller size font raised up in space, howeverstandard character maps will normally have numbers 1 2 3 i.e. ¹ ² ³, and you can bring them upusing your keyboard by pressing the Alt key, holding it down, and typing on your number keypad (onthe right) a specific number try: Alt+0178.You may know this, but not everybody realises. You can find out these codes by using the Charactermap program that is included with windows and found under Accessories - System Tools. If you haven'tinstalled it then you can add it from the windows disk using the Add/Remove programs Windows setupfeature. You will need to change the font to the one you are using, which was Times New Roman in mycase.If you are working with a windows display then you can use the graphical capabilities of the WinAPIto change the font sizes and move the characters around, like a word processor does, but thatrequires hand coding the changes.Another way of displaying these numbers if the Alt key combination doesn't work is to find out thecharacter code that corresponds to that symbol, but I'll let you figure that out.Hope this helps, Jason.----- Original Message -----From: "Dane Cannon" To: Sent: Thursday, June 13, 2002 4:47 PMSubject: [Dev-C++] superscript for squaresHi,I could nor figure out how to use superscript for squares (like for example12 ) in DEV++ IDE . Can you please tell me is there a short cut for doingit or other method.Thank you very much,Anna Cannon_______________________________________________________________Don't miss the 2002 Sprint PCS Application Developer's ConferenceAugust 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink_______________________________________________Dev-cpp-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dev-cpp-users--__--__--Message: 5From: "Jason Hardman" To: "Dev-C++" Subject: Re: [Dev-C++] Export keyword problemDate: Thu, 13 Jun 2002 23:24:55 +0100Here's a qoute from a reference I have:"The export keyword can precede a template declaration. It allows other files to use a templatedeclared in a different file by specifying only its declaration rather than duplicating its entiredefinition."If I remember correctly this feature is very new and not implemented in many compilers yet. It's todo with the fact that old style binaries/libraries didn't have the ability to represent a templatedfunction within themselves, they could only represent a template function that had been targetted toa specific type at compile time, i.e. int, float, MyClass, etc...Also of interest:"extern is a data type modifier that tells the compiler about a variable that is defined elsewherein a program. This is often used in conjunction with separately compiled files that share the sameglobal data. In essence, it notifies the compiler about the type of a variable without redefiningit.......""For C++ only, extern is also used to create a linkage specification......"Hope this helps,Jason.----- Original Message -----From: "Mac Reiter" To: Sent: Thursday, June 13, 2002 10:38 PMSubject: Re: [Dev-C++] Export keyword problem>The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two>models of compilation: separation and inclusion. The separation model>defines a function in a separate file and it becomes available with the>keyword export. I tested this in the Dev and it did not work. TheI do not have this book available, but in a fair number of years of C andC++ programming, I have never heard of the "export" keyword, except for DLLcreation in Microsoft compilers. The closest I can think of is the"extern" keyword, but it is used to import things from other compilationunits, and it is _not_ needed to get access to functions.Could you give one or more quotes from your book, preferably with smallcode examples if possible?Mac-_____________________________ /"\Mac Reiter \ / ASCII Ribbon CampaignNomadics, Inc. X Against HTML Mai...@no... / \ (To join the campaign, simply usethis in your signature.)_______________________________________________________________Don't miss the 2002 Sprint PCS Application Developer's ConferenceAugust 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink_______________________________________________Dev-cpp-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dev-cpp-users--__--__--Message: 6Date: Fri, 14 Jun 2002 00:28:17 +0200From: Zodiaq Reply-To: Zodiaq Organization: EarthTo: dev...@li...: [Dev-C++] howto construct messages in win32Hello to all dev-cpp users,I know it is a little OT, but I need some help... does anybody havea good idea how to contruct properly messages in win32 environment...question is kinda strange, so let me specify my problem:I would like to build messages from chars, put inside some doubles(FLOATs) and then some other chars etc... well I know that sprintfworks fine, but I want to use some newer (C++ , Win32 or std)methodes... I tried ostrstream but behavour is veeeeery strange when I tryto write to it more than once - I get only numbers... then I triedstring and use it:string text = "alfa" + number + " $";but then, when sending it to controls I get a VERY strange behavour -sending it by text.c_str( ) in controls (edit boxes) I get text frommy program, but from very strange places - like from error messages...So finishing - does anybody know a good solution for my problem...btw I'm using Visual C++ .NET (few houres ago I used VC 6 and I gotthe same errors... and waiting for some fully functional Dev-C++ andnew mingw...) and WinXP if it helps in anything...For now the only way for me is to write my own methods... but thiswill take time, which I don't have much to spare...--regards, Zodiaq...--__--__--Message: 7From: "Jason Hardman" To: "Dev-C++" Subject: Re: [Dev-C++] superscript for squaresDate: Thu, 13 Jun 2002 23:30:19 +0100Also I forgot to mention that most people will recognise that when you write: 2^2 you actualy meantwo-squared, although in the C/C++ universe it can be missleading as the '^' actualy means bitwiseXOR.Jason.----- Original Message -----From: "Jason Hardman" To: "Dev-C++" ; "Dane Cannon" Sent: Thursday, June 13, 2002 11:15 PMSubject: Re: [Dev-C++] superscript for squaresHow about 2² = 4 etc.You will find that word processors do it by using a smaller size font raised up in space, howeverstandard character maps will normally have numbers 1 2 3 i.e. ¹ ² ³, and you can bring them upusing your keyboard by pressing the Alt key, holding it down, and typing on your number keypad (onthe right) a specific number try: Alt+0178.You may know this, but not everybody realises. You can find out these codes by using the Charactermap program that is included with windows and found under Accessories - System Tools. If you haven'tinstalled it then you can add it from the windows disk using the Add/Remove programs Windows setupfeature. You will need to change the font to the one you are using, which was Times New Roman in mycase.If you are working with a windows display then you can use the graphical capabilities of the WinAPIto change the font sizes and move the characters around, like a word processor does, but thatrequires hand coding the changes.Another way of displaying these numbers if the Alt key combination doesn't work is to find out thecharacter code that corresponds to that symbol, but I'll let you figure that out.Hope this helps, Jason.----- Original Message -----From: "Dane Cannon" To: Sent: Thursday, June 13, 2002 4:47 PMSubject: [Dev-C++] superscript for squaresHi,I could nor figure out how to use superscript for squares (like for example12 ) in DEV++ IDE . Can you please tell me is there a short cut for doingit or other method.Thank you very much,Anna Cannon_______________________________________________________________Don't miss the 2002 Sprint PCS Application Developer's ConferenceAugust 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink_______________________________________________Dev-cpp-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dev-cpp-users_______________________________________________________________Don't miss the 2002 Sprint PCS Application Developer's ConferenceAugust 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink_______________________________________________Dev-cpp-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dev-cpp-users--__--__--Message: 8From: "Jason Hardman" To: "Dev-C++" ,"Zodiaq" Subject: Re: [Dev-C++] howto construct messages in win32Date: Thu, 13 Jun 2002 23:48:16 +0100Please clarify, what output do you want? What is the strange output you got? What do you meanmessages, just text strings, or maybe popup message dialogues (MessageBoxEx)?Also the sprintf function is perfectly standard C++, and there is no problem in using it still. Ithink the reason your assignment didn't work was because you tried to add '+' a c-string to a float,which isn't a valid combination in C++ (although it is valid in Java).Try this:string text = "alfa";text += number;text += " $";or:string text = string("alfa") + number + string(" $");I'm not certain about the validity of the second one, but the idea is right. The string class hasoperator overloading for the + symbol to allow you to add non-string types to it, but the oldc-string, which is just an array of chars doesn't allow it.Jason.----- Original Message -----From: "Zodiaq" To: Sent: Thursday, June 13, 2002 11:28 PMSubject: [Dev-C++] howto construct messages in win32Hello to all dev-cpp users,I know it is a little OT, but I need some help... does anybody havea good idea how to contruct properly messages in win32 environment...question is kinda strange, so let me specify my problem:I would like to build messages from chars, put inside some doubles(FLOATs) and then some other chars etc... well I know that sprintfworks fine, but I want to use some newer (C++ , Win32 or std)methodes... I tried ostrstream but behavour is veeeeery strange when I tryto write to it more than once - I get only numbers... then I triedstring and use it:string text = "alfa" + number + " $";but then, when sending it to controls I get a VERY strange behavour -sending it by text.c_str( ) in controls (edit boxes) I get text frommy program, but from very strange places - like from error messages...So finishing - does anybody know a good solution for my problem...btw I'm using Visual C++ .NET (few houres ago I used VC 6 and I gotthe same errors... and waiting for some fully functional Dev-C++ andnew mingw...) and WinXP if it helps in anything...For now the only way for me is to write my own methods... but thiswill take time, which I don't have much to spare...--regards, Zodiaq..._______________________________________________________________Don't miss the 2002 Sprint PCS Application Developer's ConferenceAugust 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink_______________________________________________Dev-cpp-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dev-cpp-users--__--__--Message: 9From: "Nancy Alvarez" To: dev...@li...: Fri, 14 Jun 2002 00:18:14 +0000Subject: [Dev-C++] (no subject)Hi,Somebody can say what to do for calculate sin, cossin, tangent. How are entries.? For example: I have a function x(tan x) If x=5 , Do I write 5(tan 5) in my routine?Thanks_________________________________________________________________Descargue GRATUITAMENTE MSN Explorer en http://explorer.yupimsn.com/intl.asp.--__--__--Message: 10From: "Ioannis Vranos" To: Subject: RE: [Dev-C++] Export keyword problemDate: Fri, 14 Jun 2002 05:06:15 +0300> -----Original Message-----> From: dev...@li...=20> [mailto:dev...@li...] On Behalf=20> Of Marcos Carrard> Sent: Thursday, June 13, 2002 10:47 PM> To: dev...@li...> Subject: [Dev-C++] Export keyword problem>=20>=20> Hi!>=20> The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two> models of compilation: separation and inclusion. The separation model> defines a function in a separate file and it becomes=20> available with the> keyword export. I tested this in the Dev and it did not work. The> compilation result say that the export keyword is not valid and the> linker don=B4t find my function definition. What I can make? The =export> keyword is not available?export is for template functions.For normal functions you provide the definition in a file, e.g.void something(void){// ...}and in the other files that you want to use that function you declare itbefore its use (typically at the beginning of the file):void something(void);or extern void something(void);which are both equivallent.Ioannis* Ioannis Vranos* Programming pages: http://www.noicys.cjb.net* Alternative URL: http://run.to/noicys--__--__--Message: 11From: "Abhijit Shylanath" To: "Nancy Alvarez" ,"Dev-C++ Mailing List" Subject: Re: [Dev-C++] (no subject)Date: Fri, 14 Jun 2002 13:20:25 +0530Organization: RetrogressionYou'll have to convert the mathematical expression into a C-styleexpression.For example:#include x = r * cos(theta);y = r * sin(theta);In your program you'll have to usex = 5;y = x * tan(x);Note that y should be a float or double if you want to use it practically.So,y = (float)x * tan(x);Check math.h for more functions.--------------------------http://mudeth.tripod.com----- Original Message -----From: "Nancy Alvarez" To: Sent: Friday, June 14, 2002 5:48 AMSubject: [Dev-C++] (no subject)>>> Hi,>> Somebody can say what to do for calculate sin, cossin, tangent. How are> entries.? For example: I have a function x(tan x) If x=5 , Do Iwrite> 5(tan 5) in my routine?>> Thanks>--__--__--Message: 12From: "Greg Elliot" To: dev...@li...: Fri, 14 Jun 2002 12:26:54 +0000Subject: [Dev-C++] Linker errorsHiyaIm trying to use this source code, but when i go to compile i get loads of linker errors, how do i go about correcting these. Im a novice so simple instructions would be useful. Thanks. Ive included the source code below. Thanks#include #include int main(int argc, char** argv) {WORD version = MAKEWORD(1,1);WSADATA wsaData;int nRet;//// Start up Winsock as before//WSAStartup(version, &wsaData);//// Store information about the server//LPHOSTENT lpHostEntry;lpHostEntry = gethostbyname("www.hal-pc.org"); // Specifying server by its nameif (lpHostEntry == NULL) {printf("Error at gethostbyname()");return 0;}//// Create the socket//SOCKET theSocket;theSocket = socket(AF_INET, // Go over TCP/IPSOCK_STREAM, // Socket typeIPPROTO_TCP); // Protocolif (theSocket == INVALID_SOCKET) {printf("Error at socket()");return 0;}//// Use SOCKADDR_IN to fill in address information//SOCKADDR_IN saServer;saServer.sin_family = AF_INET;saServer.sin_addr = *((LPIN_ADDR)*lpHostEntry->h_addr_list);// ^ Address of the server being inserted into the address fieldsaServer.sin_port = htons(80);//// Connect to the server//nRet = connect(theSocket,(LPSOCKADDR)&saServer, // Server addresssizeof(struct sockaddr)); // Length of address structureif (nRet == SOCKET_ERROR) {printf("Error at connect()");return 0;}// Successfully connected!closesocket(theSocket);//// Shutdown Winsock//WSACleanup();}_________________________________________________________________Chat with friends online, try MSN Messenger: http://messenger.msn.com--__--__--_______________________________________________Dev-cpp-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dev-cpp-usersEnd of Dev-cpp-users Digest ------------------------------------------------ Can a Web portal forever change your life? Win up to $25 Million on iWon - click here! |
|
From: Greg E. <gre...@ho...> - 2002-06-14 12:27:13
|
Hiya
Im trying to use this source code, but when i go to compile i get loads of
linker errors, how do i go about correcting these. Im a novice so simple
instructions would be useful. Thanks. Ive included the source code below.
Thanks
#include <winsock.h>
#include <stdio.h>
int main(int argc, char** argv) {
WORD version = MAKEWORD(1,1);
WSADATA wsaData;
int nRet;
//
// Start up Winsock as before
//
WSAStartup(version, &wsaData);
//
// Store information about the server
//
LPHOSTENT lpHostEntry;
lpHostEntry = gethostbyname("www.hal-pc.org"); // Specifying server
by its name
if (lpHostEntry == NULL) {
printf("Error at gethostbyname()");
return 0;
}
//
// Create the socket
//
SOCKET theSocket;
theSocket = socket(AF_INET, // Go over TCP/IP
SOCK_STREAM, // Socket type
IPPROTO_TCP); // Protocol
if (theSocket == INVALID_SOCKET) {
printf("Error at socket()");
return 0;
}
//
// Use SOCKADDR_IN to fill in address information
//
SOCKADDR_IN saServer;
saServer.sin_family = AF_INET;
saServer.sin_addr = *((LPIN_ADDR)*lpHostEntry->h_addr_list);
// ^ Address of the server being inserted into the address field
saServer.sin_port = htons(80);
//
// Connect to the server
//
nRet = connect(theSocket,
(LPSOCKADDR)&saServer, // Server address
sizeof(struct sockaddr)); // Length of address structure
if (nRet == SOCKET_ERROR) {
printf("Error at connect()");
return 0;
}
// Successfully connected!
closesocket(theSocket);
//
// Shutdown Winsock
//
WSACleanup();
}
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|
|
From: Abhijit S. <mu...@gm...> - 2002-06-14 07:51:11
|
You'll have to convert the mathematical expression into a C-style expression. For example: #include <math.h> x = r * cos(theta); y = r * sin(theta); In your program you'll have to use x = 5; y = x * tan(x); Note that y should be a float or double if you want to use it practically. So, y = (float)x * tan(x); Check math.h for more functions. -------------------------- http://mudeth.tripod.com ----- Original Message ----- From: "Nancy Alvarez" <nai...@ho...> To: <dev...@li...> Sent: Friday, June 14, 2002 5:48 AM Subject: [Dev-C++] (no subject) > > > Hi, > > Somebody can say what to do for calculate sin, cossin, tangent. How are > entries.? For example: I have a function x(tan x) If x=5 , Do I write > 5(tan 5) in my routine? > > Thanks > |
|
From: Ioannis V. <no...@ho...> - 2002-06-14 02:06:37
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Marcos Carrard
> Sent: Thursday, June 13, 2002 10:47 PM
> To: dev...@li...
> Subject: [Dev-C++] Export keyword problem
>=20
>=20
> Hi!
>=20
> The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two
> models of compilation: separation and inclusion. The separation model
> defines a function in a separate file and it becomes=20
> available with the
> keyword export. I tested this in the Dev and it did not work. The
> compilation result say that the export keyword is not valid and the
> linker don=B4t find my function definition. What I can make? The =
export
> keyword is not available?
export is for template functions.
For normal functions you provide the definition in a file, e.g.
void something(void)
{
// ...
}
and in the other files that you want to use that function you declare it
before its use (typically at the beginning of the file):
void something(void);
or extern void something(void);
which are both equivallent.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Nancy A. <nai...@ho...> - 2002-06-14 00:18:34
|
Hi, Somebody can say what to do for calculate sin, cossin, tangent. How are entries.? For example: I have a function x(tan x) If x=5 , Do I write 5(tan 5) in my routine? Thanks _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.yupimsn.com/intl.asp. |
|
From: Jason H. <jas...@nt...> - 2002-06-13 22:48:50
|
Please clarify, what output do you want? What is the strange output you got? What do you mean
messages, just text strings, or maybe popup message dialogues (MessageBoxEx)?
Also the sprintf function is perfectly standard C++, and there is no problem in using it still. I
think the reason your assignment didn't work was because you tried to add '+' a c-string to a float,
which isn't a valid combination in C++ (although it is valid in Java).
Try this:
string text = "alfa";
text += number;
text += " $";
or:
string text = string("alfa") + number + string(" $");
I'm not certain about the validity of the second one, but the idea is right. The string class has
operator overloading for the + symbol to allow you to add non-string types to it, but the old
c-string, which is just an array of chars doesn't allow it.
Jason.
----- Original Message -----
From: "Zodiaq" <zo...@ac...>
To: <dev...@li...>
Sent: Thursday, June 13, 2002 11:28 PM
Subject: [Dev-C++] howto construct messages in win32
Hello to all dev-cpp users,
I know it is a little OT, but I need some help... does anybody have
a good idea how to contruct properly messages in win32 environment...
question is kinda strange, so let me specify my problem:
I would like to build messages from chars, put inside some doubles
(FLOATs) and then some other chars etc... well I know that sprintf
works fine, but I want to use some newer (C++ , Win32 or std)
methodes... I tried ostrstream but behavour is veeeeery strange when I try
to write to it more than once - I get only numbers... then I tried
string and use it:
string text = "alfa" + number + " $";
but then, when sending it to controls I get a VERY strange behavour -
sending it by text.c_str( ) in controls (edit boxes) I get text from
my program, but from very strange places - like from error messages...
So finishing - does anybody know a good solution for my problem...
btw I'm using Visual C++ .NET (few houres ago I used VC 6 and I got
the same errors... and waiting for some fully functional Dev-C++ and
new mingw...) and WinXP if it helps in anything...
For now the only way for me is to write my own methods... but this
will take time, which I don't have much to spare...
--
regards, Zodiaq...
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Jason H. <jas...@nt...> - 2002-06-13 22:30:52
|
Also I forgot to mention that most people will recognise that when you write: 2^2 you actualy mean two-squared, although in the C/C++ universe it can be missleading as the '^' actualy means bitwise XOR. Jason. ----- Original Message ----- From: "Jason Hardman" <jas...@nt...> To: "Dev-C++" <dev...@li...>; "Dane Cannon" <da...@wh...> Sent: Thursday, June 13, 2002 11:15 PM Subject: Re: [Dev-C++] superscript for squares How about 2² = 4 etc. You will find that word processors do it by using a smaller size font raised up in space, however standard character maps will normally have numbers 1 2 3 i.e. ¹ ² ³, and you can bring them up using your keyboard by pressing the Alt key, holding it down, and typing on your number keypad (on the right) a specific number try: Alt+0178. You may know this, but not everybody realises. You can find out these codes by using the Character map program that is included with windows and found under Accessories - System Tools. If you haven't installed it then you can add it from the windows disk using the Add/Remove programs Windows setup feature. You will need to change the font to the one you are using, which was Times New Roman in my case. If you are working with a windows display then you can use the graphical capabilities of the WinAPI to change the font sizes and move the characters around, like a word processor does, but that requires hand coding the changes. Another way of displaying these numbers if the Alt key combination doesn't work is to find out the character code that corresponds to that symbol, but I'll let you figure that out. Hope this helps, Jason. ----- Original Message ----- From: "Dane Cannon" <da...@wh...> To: <dev...@li...> Sent: Thursday, June 13, 2002 4:47 PM Subject: [Dev-C++] superscript for squares Hi, I could nor figure out how to use superscript for squares (like for example 12 ) in DEV++ IDE . Can you please tell me is there a short cut for doing it or other method. Thank you very much, Anna Cannon _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Zodiaq <zo...@ac...> - 2002-06-13 22:28:30
|
Hello to all dev-cpp users, I know it is a little OT, but I need some help... does anybody have a good idea how to contruct properly messages in win32 environment... question is kinda strange, so let me specify my problem: I would like to build messages from chars, put inside some doubles (FLOATs) and then some other chars etc... well I know that sprintf works fine, but I want to use some newer (C++ , Win32 or std) methodes... I tried ostrstream but behavour is veeeeery strange when I try to write to it more than once - I get only numbers... then I tried string and use it: string text = "alfa" + number + " $"; but then, when sending it to controls I get a VERY strange behavour - sending it by text.c_str( ) in controls (edit boxes) I get text from my program, but from very strange places - like from error messages... So finishing - does anybody know a good solution for my problem... btw I'm using Visual C++ .NET (few houres ago I used VC 6 and I got the same errors... and waiting for some fully functional Dev-C++ and new mingw...) and WinXP if it helps in anything... For now the only way for me is to write my own methods... but this will take time, which I don't have much to spare... -- regards, Zodiaq... |
|
From: Jason H. <jas...@nt...> - 2002-06-13 22:25:29
|
Here's a qoute from a reference I have:
"The export keyword can precede a template declaration. It allows other files to use a template
declared in a different file by specifying only its declaration rather than duplicating its entire
definition."
If I remember correctly this feature is very new and not implemented in many compilers yet. It's to
do with the fact that old style binaries/libraries didn't have the ability to represent a templated
function within themselves, they could only represent a template function that had been targetted to
a specific type at compile time, i.e. int, float, MyClass, etc...
Also of interest:
"extern is a data type modifier that tells the compiler about a variable that is defined elsewhere
in a program. This is often used in conjunction with separately compiled files that share the same
global data. In essence, it notifies the compiler about the type of a variable without redefining
it......."
"For C++ only, extern is also used to create a linkage specification......"
Hope this helps,
Jason.
----- Original Message -----
From: "Mac Reiter" <re...@no...>
To: <dev...@li...>
Sent: Thursday, June 13, 2002 10:38 PM
Subject: Re: [Dev-C++] Export keyword problem
>The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two
>models of compilation: separation and inclusion. The separation model
>defines a function in a separate file and it becomes available with the
>keyword export. I tested this in the Dev and it did not work. The
I do not have this book available, but in a fair number of years of C and
C++ programming, I have never heard of the "export" keyword, except for DLL
creation in Microsoft compilers. The closest I can think of is the
"extern" keyword, but it is used to import things from other compilation
units, and it is _not_ needed to get access to functions.
Could you give one or more quotes from your book, preferably with small
code examples if possible?
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Jason H. <jas...@nt...> - 2002-06-13 22:16:29
|
How about 2² = 4 etc. You will find that word processors do it by using a smaller size font raised up in space, however standard character maps will normally have numbers 1 2 3 i.e. ¹ ² ³, and you can bring them up using your keyboard by pressing the Alt key, holding it down, and typing on your number keypad (on the right) a specific number try: Alt+0178. You may know this, but not everybody realises. You can find out these codes by using the Character map program that is included with windows and found under Accessories - System Tools. If you haven't installed it then you can add it from the windows disk using the Add/Remove programs Windows setup feature. You will need to change the font to the one you are using, which was Times New Roman in my case. If you are working with a windows display then you can use the graphical capabilities of the WinAPI to change the font sizes and move the characters around, like a word processor does, but that requires hand coding the changes. Another way of displaying these numbers if the Alt key combination doesn't work is to find out the character code that corresponds to that symbol, but I'll let you figure that out. Hope this helps, Jason. ----- Original Message ----- From: "Dane Cannon" <da...@wh...> To: <dev...@li...> Sent: Thursday, June 13, 2002 4:47 PM Subject: [Dev-C++] superscript for squares Hi, I could nor figure out how to use superscript for squares (like for example 12 ) in DEV++ IDE . Can you please tell me is there a short cut for doing it or other method. Thank you very much, Anna Cannon _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Mac R. <re...@no...> - 2002-06-13 21:40:15
|
>The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two
>models of compilation: separation and inclusion. The separation model
>defines a function in a separate file and it becomes available with the
>keyword export. I tested this in the Dev and it did not work. The
I do not have this book available, but in a fair number of years of C and
C++ programming, I have never heard of the "export" keyword, except for DLL
creation in Microsoft compilers. The closest I can think of is the
"extern" keyword, but it is used to import things from other compilation
units, and it is _not_ needed to get access to functions.
Could you give one or more quotes from your book, preferably with small
code examples if possible?
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Mac R. <re...@no...> - 2002-06-13 20:51:31
|
>I could nor figure out how to use superscript for squares (like for example
>12 ) in DEV++ IDE . Can you please tell me is there a short cut for doing
>it or other method.
Unfortunately I am unsure what you are trying to do... "superscript" is a
typesetting issue, and unrelated to programming. What is "example 12"? I
am going to assume that you meant:
2
"like, for example, 1 "
If you are viewing this with proportional spaced fonts, I was attempting to
place a "1" with a raised superscripted "2" above it...
In an attempt to be useful, I will make a wild assumption and run with it.
If it isn't useful, I apologize.
If you are trying to raise one number to another power ( "one raised to the
second power", otherwise known as "one squared" ), the function you want is
pow(). In this particular example, it would be "pow(1,2)".
IMPORTANT : pow() is a general purpose, floating point routine, capable of
handling things like "pow(-13.9153, 9513.24351)", and because of that it is
extremely slow compared to other methods if you are doing simple powers.
If you are truly doing squares, the fastest method is to multiply the
number by itself... Rather than doing "xsquared = pow(x,2)", just do
"xsquared = x*x" and it will run a lot faster. If you are trying to raise
to a higher, but still integral power, (for example, "pow(3511.31451532,
17)") there are fast routines for doing that. I found them in intro
computer science books. They involve bit shifting and masking though,
which may be more involved that you want to get. If speed isn't a major
issue, just use pow().
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Marcos C. <ca...@un...> - 2002-06-13 19:45:05
|
Hi! The book C++ Primer, 3rd edition, Lippmann and Lajoie, speaks on two models of compilation: separation and inclusion. The separation model defines a function in a separate file and it becomes available with the keyword export. I tested this in the Dev and it did not work. The compilation result say that the export keyword is not valid and the linker don=B4t find my function definition. What I can make? The export keyword is not available? Thanks, Marcos |
|
From: Dane C. <da...@wh...> - 2002-06-13 15:46:54
|
Hi, I could nor figure out how to use superscript for squares (like for example 12 ) in DEV++ IDE . Can you please tell me is there a short cut for doing it or other method. Thank you very much, Anna Cannon |
|
From: Abhijit S. <mu...@gm...> - 2002-06-13 11:34:21
|
http://www.gnu.org/software/gcc/bugs.html -------------------------- http://mudeth.tripod.com ----- Original Message ----- From: "Coastnet" <srw...@co...> To: <dev...@li...> Sent: Thursday, June 13, 2002 10:12 AM Subject: [Dev-C++] error message > I have an error message"internal compiler error 'find_function_data' at > funtion c:543" with instructions to report it to > gnu.org./software/qcc/bugs,but it was a broken link. any Ideas? |
|
From: Coastnet <srw...@co...> - 2002-06-13 10:16:21
|
I have an error message"internal compiler error 'find_function_data' at funtion c:543" with instructions to report it to gnu.org./software/qcc/bugs,but it was a broken link. any Ideas? Shane Waggoner phone 250-646-2895 mailto:srw...@co... |
|
From: Andres R. <lo...@ho...> - 2002-06-13 09:33:07
|
Hello Colin! I found another "bug" in dev-c++ rev 1.44(cvs). In search toolbar, tool-tips are wrong: Replace..(F3) on search again icon, and Search Again (Ctrl+R) on replace icon. Solution: text part (replace/search again) should be swaped. A. Aah.. almost forgot: In Tools menu there is <ERR: 224> (4th item) Dialog that comes up, is also full of <ERR: ???> signs.. |
|
From: Ioannis V. <no...@ho...> - 2002-06-13 00:34:18
|
As i see it, it should work. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of h.r...@gm... > Sent: Wednesday, June 12, 2002 8:36 PM > To: dev...@li... > Subject: [Dev-C++] necessary brackets ? > > > > Hi, > > > > Can anybody explain me why the following Code works: > > > > void ReadData(const char* s) > > { > > extern Prozessfaehigkeit pf; > > > > ifstream in(s); > > string line; > > > > getline(in, line); > > pf.MeanS = (atof(line.c_str())); > > [...] > > > > and > > > > void ReadData(const char* s) > > { > > extern Prozessfaehigkeit pf; > > > > ifstream in(s); > > string line; > > > > getline(in, line); > > pf.MeanS = atof(line.c_str()); > > [...] > > > > works not ? Why is there a need for brackets ? > > Thanks in advance, > > Greetings > > Horst > sorry for my wrong subject in last posting > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net > > > _______________________________________________________________ > > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <h.r...@gm...> - 2002-06-12 17:36:01
|
> Hi,
>
> Can anybody explain me why the following Code works:
>
> void ReadData(const char* s)
> {
> extern Prozessfaehigkeit pf;
>
> ifstream in(s);
> string line;
>
> getline(in, line);
> pf.MeanS = (atof(line.c_str()));
> [...]
>
> and
>
> void ReadData(const char* s)
> {
> extern Prozessfaehigkeit pf;
>
> ifstream in(s);
> string line;
>
> getline(in, line);
> pf.MeanS = atof(line.c_str());
> [...]
>
> works not ? Why is there a need for brackets ?
> Thanks in advance,
> Greetings
> Horst
sorry for my wrong subject in last posting
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
|
|
From: <h.r...@gm...> - 2002-06-12 17:12:20
|
Hi,
Can anybody explain me why the following Code works:
void ReadData(const char* s)
{
extern Prozessfaehigkeit pf;
ifstream in(s);
string line;
getline(in, line);
pf.MeanS = (atof(line.c_str()));
[...]
and
void ReadData(const char* s)
{
extern Prozessfaehigkeit pf;
ifstream in(s);
string line;
getline(in, line);
pf.MeanS = atof(line.c_str());
[...]
works not ? Why is there a need for brackets ?
Thanks in advance,
Greetings
Horst
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
|
|
From: Hongli L. <h....@ch...> - 2002-06-12 13:14:11
|
On Wed, 2002-06-12 at 00:25, Colin Laplace wrote: > Hello, > > I will do tests on gcc 3.1 to see if it's stable enough for inclusion in main > Dev-C++ distribution. Everybody feel free to email me the problems you may be > having with it, comparing to the good old gcc 2.95.3. > > Greetings, > Colin > If you create a new distribution just don't forget to add the Package Manager to the menu group and to associate the right icons to the right file types. |
|
From: Ioannis V. <no...@ho...> - 2002-06-12 06:45:42
|
> -----Original Message----- > From: Luke Dunstan [mailto:cod...@ho...] > Sent: Wednesday, June 12, 2002 9:37 AM > To: Ioannis Vranos > Cc: mingw-users > Subject: Re: [Mingw-users] GMINGW GCC 3.1 another defect > > > > Once again, the C runtime library is not written by the Mingw or GCC > developers, it is provided by Microsoft in MSVCRT.DLL (which > is included > with Windows). This is unlike some other Windows compilers > such as Borland > C++ which have their own C runtime library. That is why bugs > like this are > not trivial to fix, and would require an entirely different > implementation > of printf. Most likely an open source library will be used, > but I think many > people will want it to be compatible with the MS printf, in > the sense of its > extra features (not its bugs and missing features). > > There is a separate project at > http://sourceforge.net/projects/mingwacr/ to > develop a > complete C runtime for Mingw from scratch, so perhaps you could > contribute to this project if it interests you. I want and it would be great. But keep in mind that i know only C89, learning C++ (TC++PL) and am about to begin learning .NET . :) But since i do not know Win32 crap, i have the feeling that the team will not want me. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-06-12 06:42:28
|
> -----Original Message----- > From: Mikael Aronsson [mailto:mik...@te...] > Sent: Wednesday, June 12, 2002 10:35 AM > To: Ioannis Vranos; 'mingw-users' > Subject: Re: [Mingw-users] GMINGW GCC 3.1 another defect? > > > Hi ! > > You might wanna call it a defect, but there is not much that > can be done > about it, the MS runtime does not support long doubles, it's > as simple as > that. Yes but VC++ 6 works fine with long double without producing erroneus results (if i recall correctly from some years ago, then with SP3). Well if MS doesn't provide long double, it is still a defect since it produces erroneous results. long double could be equivallent to double. > > What you could do, would be to force gcc to make all "long > double" normal > "double" instead, and as far as I know that is fine with the > ansi standard > also, but then you can't use long doubles at all. It is fine with the standard and yes you could still use them. Intel C++ 6 has double==long double and is considered one of the best compilers. Sorry for insisting, but there can be no "excuse", the production of false results is a defect... Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-06-11 22:55:03
|
Thanks for the interesting info! Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: Jason Hardman [mailto:jas...@nt...] > Sent: Wednesday, June 12, 2002 1:46 AM > To: Dev-C++; Ioannis Vranos > Subject: Re: [Dev-C++] MINGW GCC 3.x II > > > CVS stands for Concurrent Versions System, and is a tool to > enable a group of people to work with > the source of a program. Significantly CVS is available for > use on sourceforge, and allows a > developer to "checkout" a particular source file work on it > and store the changes/fixes back with > the original. With a CVS archive you can regress your > sourcecode to an earlier state, or branch off > and perform two concurrent developments. It's something I'm > still trying to learn so I probably am > not explaining it very well, but you can find more info in > the sourceforge docs or here at: > http://www.cvshome.org/ > > Jason. > > ----- Original Message ----- > From: "Ioannis Vranos" <no...@ho...> > To: "Dev-C++ Mailing List" <dev...@li...> > Sent: Tuesday, June 11, 2002 11:34 PM > Subject: RE: [Dev-C++] MINGW GCC 3.x II > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Colin Laplace > > Sent: Wednesday, June 12, 2002 1:25 AM > > To: dev...@li... > > Subject: Re: [Dev-C++] MINGW GCC 3.x II > > > > > > Hello, > > > > I will do tests on gcc 3.1 to see if it's stable enough for > > inclusion in main > > Dev-C++ distribution. Everybody feel free to email me the > > problems you may be > > having with it, comparing to the good old gcc 2.95.3. > > > > Greetings, > > Colin > > > Ok but use the CVS distribution (what exactly is CVS?). I reported a > very minor bug in 3.1's stdio.h and they told me it was > already fixed in > the CVS distribution, and "the sourceforge binaries will be updated > sometime soon". Except of this, GCC 3.1 is *excellent*, it provides > useful warnings and stuff (and is probably 100% standard C++ compliant > or at least very close to it, since i have not found any C++ construct > so far that it doesn't support, (in contrast to the classic 2.95.x > distributions, 2.95.x were made in the 1997 era, and only bug > fixes were > provided since the original version). > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > _______________________________________________________________ > > Multimillion Dollar Computer Inventory > Live Webcast Auctions Thru Aug. 2002 - > http://www.cowanalexander.com/calendar > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |