From: Gatis Z. <gat...@ya...> - 2001-02-20 20:15:41
|
I just started to use Dev-C++ and can't understand how to write = programs. I traid to red the help but it's to har for me. I have no = expirience with C++ and allmoust no programming experience. I want to = learn it. Please help me. It would be great if somebody could send me = some simple programms witch I can study. Gatis. |
From: Gatis Z. <gat...@ya...> - 2001-02-27 18:07:26
|
Hi, I have a big problem with Dev-c++. When I run programms Dev-c++ = minimazes and maximizes. The program is OK but I don't see anything. For = e4xample this program should print on screen "Hello World!" but it runs = and ends this program and it is sad that that the programm has 0 errors. = This is Windows application. What schould change some settings in = Dev-c++.=20 #include <iostream.h> int main() { cout << "Hello World!\n"; return 0; }=20 Gatis. |
From: Jack D. <ja...@am...> - 2001-02-27 18:16:19
|
Add the line: system("PAUSE"); just before the return 0 and the program will pause so you can see what is going on. ----- Original Message -----=20 From: Gatis Zvejnieks=20 To: dev...@li...=20 Sent: Wednesday, December 27, 2000 9:18 AM Subject: [Dev-C++] help Hi, I have a big problem with Dev-c++. When I run programms Dev-c++ = minimazes and maximizes. The program is OK but I don't see anything. For = e4xample this program should print on screen "Hello World!" but it runs = and ends this program and it is sad that that the programm has 0 errors. = This is Windows application. What schould change some settings in = Dev-c++.=20 #include <iostream.h> int main() { cout << "Hello World!\n"; return 0; }=20 Gatis. |
From: jag <won...@th...> - 2001-03-26 01:19:19
|
This email was delivered to you by The Free Internet, a Business Online Group company. http://www.thefreeinternet.net --------------------------------------------------------------- does anybody know how to unsubscribe from this list? |
From: David M. <dav...@ei...> - 2001-03-26 18:33:45
|
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users ----- Original Message -----=20 From: jag=20 To: dev...@li...=20 Sent: Monday, March 26, 2001 2:24 AM Subject: [Dev-C++] help This email was delivered to you by The Free Internet, a Business Online Group company. http://www.thefreeinternet.net -------------------------------------------------------------------------= ----- does anybody know how to unsubscribe from this list? |
From: jag <won...@th...> - 2001-03-26 21:39:37
|
This email was delivered to you by The Free Internet, a Business Online Group company. http://www.thefreeinternet.net --------------------------------------------------------------- thanks!!! ----- Original Message -----=20 From: David Morrisroe=20 To: dev...@li...=20 Sent: Monday, March 26, 2001 7:31 PM Subject: Re: [Dev-C++] help http://lists.sourceforge.net/lists/listinfo/dev-cpp-users ----- Original Message -----=20 From: jag=20 To: dev...@li...=20 Sent: Monday, March 26, 2001 2:24 AM Subject: [Dev-C++] help This email was delivered to you by The Free Internet, a Business Online Group company. http://www.thefreeinternet.net -------------------------------------------------------------------------= --- does anybody know how to unsubscribe from this list? |
From: teleparla <tel...@te...> - 2001-04-21 23:37:10
|
Alguien me podria decir que funci=F3n se puede utilizar para limpiar la = pantalla, y dentro de que librer=EDa se encuentra. I try with clrscr() but the compiler d'ont reconice this function. I d'ont found the function for clear the screnn, someone can help me? = muchas gracias=20 |
From: Vassili <v.v...@bt...> - 2001-04-22 10:50:22
|
Try this, Click project tab, project options, load object file, go to the the = Dev-C++ lib folder, and select the conio object file. Hope this helps. Vas ----- Original Message -----=20 From: teleparla=20 To: dev...@li...=20 Sent: Sunday, April 22, 2001 12:38 AM Subject: [Dev-C++] help Alguien me podria decir que funci=F3n se puede utilizar para limpiar = la pantalla, y dentro de que librer=EDa se encuentra. I try with clrscr() but the compiler d'ont reconice this function. I d'ont found the function for clear the screnn, someone can help me? = muchas gracias=20 |
From: Ioannis V. <no...@ya...> - 2001-04-22 12:37:11
|
#include <stdlib.h> system("cls"); Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of teleparla Sent: Sunday, April 22, 2001 1:39 AM To: dev...@li... Subject: [Dev-C++] help Alguien me podria decir que funci=F3n se puede utilizar para limpiar la pantalla, y dentro de que librer=EDa se encuentra. I try with clrscr() but the compiler d'ont reconice this function. I d'ont found the function for clear the screnn, someone can help me? muchas gracias |
From: DeAd P. <dea...@ho...> - 2001-05-18 19:13:33
|
ok, in school i have this file i use for my own shortcuts.. like mystuff.cp, when i try it on my PC it dont work.. can somone help me? I usually put it like this on the mac in school.. mystuff.cp void whatever() { cout<<"This is my sample"; } ----------------- myprogram.cp #include <iostream.h> #include <stdlib.h> #include "mystuff.cp" int main { whatever(); return 0; } -Thanks _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
From: Hopper <ho...@ka...> - 2001-08-27 11:37:01
|
dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > Today's Topics: > > 1. Dev-c++ and array ! (Sayajin) > 2. Re: Dev-c++ and array ! (Luigi Santillo) > 3. RE: Dev-c++ and array ! (Ioannis Vranos) > 4. Re: Dev-c++ and array ! (Sayajin) > 5. Re: Dev-c++ and array ! (Sayajin) > 6. detecting kb hit (* +) > > --__--__-- > > Message: 1 > From: "Sayajin" <sa...@fr...> > To: <dev...@li...> > Date: Sun, 26 Aug 2001 04:14:44 +0200 > Subject: [Dev-C++] Dev-c++ and array ! > Reply-To: dev...@li... > > C'est un message de format MIME en plusieurs parties. > > ------=_NextPart_000_007B_01C12DE5.A314E1E0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hello everybody ! ! ! > > Very strange : > Dev-c++ accept the declaration "int Tab[10,10];" (it's not permitted = > Visual C++ and Borland C++ don't accpet it) but finally Dev-c++ ignore = > the first value so if we declare :=20 > > - "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];"=20 > > Strange isnt'it ?=20 > > ------=_NextPart_000_007B_01C12DE5.A314E1E0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3DContent-Type content=3D"text/html; = > charset=3Diso-8859-1"> > <META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#a6caf0> > <DIV>Hello everybody ! ! !</DIV> > <DIV> </DIV> > <DIV>Very strange :</DIV> > <DIV>Dev-c++ accept the declaration "int Tab[10,10];" (it's not = > permitted Visual=20 > C++ and Borland C++ don't accpet it) but finally = > Dev-c++ ignore the=20 > first value so if we declare : </DIV> > <DIV><BR>- "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];" = > <BR><BR>Strange=20 > isnt'it ? </DIV></BODY></HTML> > > ------=_NextPart_000_007B_01C12DE5.A314E1E0-- > > --__--__-- > > Message: 2 > Date: Sun, 26 Aug 2001 05:54:17 +0200 > To: dev...@li... > From: Luigi Santillo <gi...@li...> > Subject: Re: [Dev-C++] Dev-c++ and array ! > Reply-To: dev...@li... > > Hi! > > My opinion about the issue: > > - Visual and Borland compilers assume that by "int Tab[10, 10]" you are > attempting to declare a matrix 10x10, so they warn you that the correct way > to do so is "int Tab[10][10]" > > - Dev-C++ (or better yet mingw) compiler assumes that you "know what you > are doing", here is why: in C (and as far as I know this is true in C++) > the following line (assume x is an int) > > x = 1, printf("x = %d", x); > > means "assign 1 to x and then print it". > > In the same fashion, the "int Tab[10, 2]" means: do "something with 10" > (actually nothing) and allocate memory (in static sense) for an array of 2 > integers. > > At 04.14 26/08/01 +0200, you wrote: > >Hello everybody ! ! ! > > > >Very strange : > >Dev-c++ accept the declaration "int Tab[10,10];" (it's not permitted > >Visual C++ and Borland C++ don't accpet it) but finally Dev-c++ ignore > >the first value so if we declare : > > > >- "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];" > > > >Strange isnt'it ? > > -- > gisan > gi...@li... > > --__--__-- > > Message: 3 > From: "Ioannis Vranos" <no...@ya...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Dev-c++ and array ! > Date: Sun, 26 Aug 2001 11:36:37 +0200 > Reply-To: dev...@li... > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0003_01C12E23.5E6DC5F0 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > You are a hacker... :) > =20 > =20 > Ioannis > =20 > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > <http://www.noicys.f2s.com/>=20 > * Alternative URL: http://run.to/noicys > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Sayajin > Sent: Sunday, August 26, 2001 4:15 AM > To: dev...@li... > Subject: [Dev-C++] Dev-c++ and array ! > > Hello everybody ! ! ! > =20 > Very strange : > Dev-c++ accept the declaration "int Tab[10,10];" (it's not permitted > Visual C++ and Borland C++ don't accpet it) but finally Dev-c++ ignore > the first value so if we declare :=20 > > - "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];"=20 > > Strange isnt'it ?=20 > > ------=_NextPart_000_0003_01C12E23.5E6DC5F0 > Content-Type: text/html; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = > charset=3Dus-ascii"> > <TITLE>Message</TITLE> > > <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#a6caf0> > <DIV><SPAN class=3D112143609-26082001><FONT face=3DArial color=3D#000080 = > > size=3D2><STRONG>You are a hacker... :)</STRONG></FONT></SPAN></DIV> > <DIV><SPAN class=3D112143609-26082001><STRONG><FONT face=3DArial = > color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D112143609-26082001><STRONG><FONT face=3DArial = > color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D112143609-26082001><STRONG><FONT face=3DArial = > color=3D#000080=20 > size=3D2>Ioannis</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D112143609-26082001> > <DIV align=3Dleft> > <DIV align=3Dleft><STRONG><FONT face=3DArial color=3D#000080=20 > size=3D2></FONT></STRONG> </DIV> > <DIV align=3Dleft><STRONG><FONT face=3DArial color=3D#000080 size=3D2>* = > Ioannis=20 > Vranos</FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>* Programming = > pages: <A=20 > href=3D"http://www.noicys.f2s.com/">http://www.noicys.f2s.com</A></FONT><= > /STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>* Alternative = > URL: <A=20 > href=3D"http://run.to/noicys">http://run.to/noicys</A></FONT></STRONG></D= > IV></DIV></SPAN></DIV> > <BLOCKQUOTE dir=3Dltr=20 > style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px = > solid; MARGIN-RIGHT: 0px"> > <DIV></DIV> > <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = > align=3Dleft><FONT=20 > face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20 > dev...@li...=20 > [mailto:dev...@li...] <B>On Behalf Of=20 > </B>Sayajin<BR><B>Sent:</B> Sunday, August 26, 2001 4:15 = > AM<BR><B>To:</B>=20 > dev...@li...<BR><B>Subject:</B> [Dev-C++] = > Dev-c++ and=20 > array !<BR><BR></FONT></DIV> > <DIV>Hello everybody ! ! !</DIV> > <DIV> </DIV> > <DIV>Very strange :</DIV> > <DIV>Dev-c++ accept the declaration "int Tab[10,10];" (it's not = > permitted=20 > Visual C++ and Borland C++ don't accpet it) but finally=20 > Dev-c++ ignore the first value so if we declare : </DIV> > <DIV><BR>- "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];"=20 > <BR><BR>Strange isnt'it ? </DIV></BLOCKQUOTE></BODY></HTML> > > ------=_NextPart_000_0003_01C12E23.5E6DC5F0-- > > --__--__-- > > Message: 4 > From: "Sayajin" <sa...@fr...> > To: <dev...@li...> > Subject: Re: [Dev-C++] Dev-c++ and array ! > Date: Sun, 26 Aug 2001 15:01:11 +0200 > Reply-To: dev...@li... > > C'est un message de format MIME en plusieurs parties. > > ------=_NextPart_000_001D_01C12E3F.F1BE9160 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Messagean Hacker ? Why ? > ----- Original Message -----=20 > From: Ioannis Vranos=20 > To: dev...@li...=20 > Sent: Sunday, August 26, 2001 11:36 AM > Subject: RE: [Dev-C++] Dev-c++ and array ! > > You are a hacker... :) > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... = > [mailto:dev...@li...] On Behalf Of Sayajin > Sent: Sunday, August 26, 2001 4:15 AM > To: dev...@li... > Subject: [Dev-C++] Dev-c++ and array ! > > Hello everybody ! ! ! > > Very strange : > Dev-c++ accept the declaration "int Tab[10,10];" (it's not permitted = > Visual C++ and Borland C++ don't accpet it) but finally Dev-c++ ignore = > the first value so if we declare :=20 > > - "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];"=20 > > Strange isnt'it ?=20 > > ------=_NextPart_000_001D_01C12E3F.F1BE9160 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD><TITLE>Message</TITLE> > <META http-equiv=3DContent-Type content=3D"text/html; = > charset=3Diso-8859-1"> > <META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#a6caf0> > <DIV><FONT face=3DArial size=3D2>an Hacker ? Why ?</FONT></DIV> > <BLOCKQUOTE dir=3Dltr=20 > style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = > BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> > <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> > <DIV=20 > style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = > black"><B>From:</B>=20 > <A title=3Dn...@ya... href=3D"mailto:no...@ya...">Ioannis = > Vranos</A>=20 > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 > title=3Dd...@li...=20 > = > href=3D"mailto:dev...@li...">dev-cpp-users@lists.s= > ourceforge.net</A>=20 > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, August 26, 2001 = > 11:36=20 > AM</DIV> > <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Dev-C++] Dev-c++ = > and array=20 > !</DIV> > <DIV><BR></DIV> > <DIV><SPAN class=3D112143609-26082001><FONT face=3DArial = > color=3D#000080=20 > size=3D2><STRONG>You are a hacker... :)</STRONG></FONT></SPAN></DIV> > <DIV><SPAN class=3D112143609-26082001><STRONG><FONT face=3DArial = > color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D112143609-26082001><STRONG><FONT face=3DArial = > color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D112143609-26082001><STRONG><FONT face=3DArial = > color=3D#000080=20 > size=3D2>Ioannis</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D112143609-26082001> > <DIV align=3Dleft> > <DIV align=3Dleft><STRONG><FONT face=3DArial color=3D#000080=20 > size=3D2></FONT></STRONG> </DIV> > <DIV align=3Dleft><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2>* Ioannis=20 > Vranos</FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>* Programming = > pages: <A=20 > = > href=3D"http://www.noicys.f2s.com">http://www.noicys.f2s.com</A></FONT></= > STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>* Alternative = > URL: <A=20 > = > href=3D"http://run.to/noicys">http://run.to/noicys</A></FONT></STRONG></D= > IV></DIV></SPAN></DIV> > <BLOCKQUOTE dir=3Dltr=20 > style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px = > solid; MARGIN-RIGHT: 0px"> > <DIV></DIV> > <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = > align=3Dleft><FONT=20 > face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> <A = > > = > href=3D"mailto:dev...@li...">dev-cpp-users-a= > dm...@li...</A>=20 > [mailto:dev...@li...] <B>On Behalf Of=20 > </B>Sayajin<BR><B>Sent:</B> Sunday, August 26, 2001 4:15 = > AM<BR><B>To:</B> <A=20 > = > href=3D"mailto:dev...@li...">dev-cpp-users@lists.s= > ourceforge.net</A><BR><B>Subject:</B>=20 > [Dev-C++] Dev-c++ and array !<BR><BR></FONT></DIV> > <DIV>Hello everybody ! ! !</DIV> > <DIV> </DIV> > <DIV>Very strange :</DIV> > <DIV>Dev-c++ accept the declaration "int Tab[10,10];" (it's not = > permitted=20 > Visual C++ and Borland C++ don't accpet it) but finally=20 > Dev-c++ ignore the first value so if we declare : </DIV> > <DIV><BR>- "int Tab[10,2];" for Dev-c++ it means : "int Tab[2];"=20 > <BR><BR>Strange isnt'it ? = > </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML> > > ------=_NextPart_000_001D_01C12E3F.F1BE9160-- > > --__--__-- > > Message: 5 > From: "Sayajin" <sa...@fr...> > To: <dev...@li...> > Subject: Re: [Dev-C++] Dev-c++ and array ! > Date: Sun, 26 Aug 2001 15:03:30 +0200 > Reply-To: dev...@li... > > > In the same fashion, the "int Tab[10, 2]" means: do "something with 10" > > (actually nothing) and allocate memory (in static sense) for an array of 2 > > integers. > > Do something with 10 ? Doing what ? > > --__--__-- > > Message: 6 > From: "* +" <el...@ho...> > To: dev...@li... > Date: Sun, 26 Aug 2001 18:54:26 +0000 > Subject: [Dev-C++] detecting kb hit > Reply-To: dev...@li... > > how do you detect if the keyboard has been hit? i was using getch but it > pauses execution and waits. Thanks > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > End of Dev-cpp-users Digest |
From: Mohammed R. <p_m...@ho...> - 2002-03-06 07:44:16
|
Hey guys, i wrote a program to solve the knight's problem.(move to every block on the chess board using the knight's movements, but never reach the same block twice.) I feel though i coded the program right my system is unable to run the program. In order to test it i compiled the program with two compilers, as a result both the exe files gave errors. but the exe file created by dev-c++ compiler ran longer than the other(i.e it could try more to reach the result). the error message for both theexe files was " this program has performed an illegal operation and will be shut down" but the details causing the error were diffrent in the either case: When compiled with Dev-c++ compiler: KNIGHT caused a stack fault in module KERNEL32.DLL at 0167:bff7a2a1. Registers: EAX=0054fffc CS=0167 EIP=bff7a2a1 EFLGS=00000216 EBX=78037780 SS=016f ESP=00552018 EBP=00552024 ECX=c1413f00 DS=016f ESI=00000024 FS=4d3f EDX=bffc9490 ES=016f EDI=81661bc0 GS=0000 Bytes at CS:EIP: 58 5f 8b e5 5d c3 a1 e8 9c fc bf 8b 08 ff 41 38 Stack dump: 81660a14 00000002 c1413f00 00552044 bff75d40 00000002 00000024 78037780 bffa0001 81660a14 00000000 00552480 78011eb2 0000000c 0055206c 00000002 When compiled with borland v5.5 compiler: KNIGHT caused a stack fault in module KNI.EXE at 0167:0041557a. Registers: EAX=00000006 CS=0167 EIP=0041557a EFLGS=00010206 EBX=00562018 SS=016f ESP=00562000 EBP=0056205c ECX=005624f1 DS=016f ESI=005624f1 FS=4d1f EDX=00000000 ES=016f EDI=0000000a GS=0000 Bytes at CS:EIP: 55 53 56 57 8b 5c 24 14 8b 4c 24 18 0b c9 75 08 Stack dump: 00415991 0000000a 00000000 00000024 005625e6 00562664 004159a4 0000000a 00000000 00000024 005625fe 00562664 00000001 00000020 0056260e 00562664 cud some one tell me what i cud do? i didnt use dynamic memory allocation in my program. -riyaz ======================================================================== P.Mohammed riyaz Student, Computer Science And Engineering ======================================================================== _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |
From: Ioannis V. <no...@ya...> - 2002-03-06 12:12:13
|
We must see the source code, send it in the list. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Mohammed Riyaz > Sent: Wednesday, March 06, 2002 9:44 AM > To: dev...@li... > Subject: [Dev-C++] help > > > > Hey guys, > > i wrote a program to solve the knight's problem.(move to > every block on the > chess board using the knight's movements, but never reach the > same block > twice.) > > I feel though i coded the program right my system is unable > to run the > program. > > In order to test it i compiled the program with two > compilers, as a result > both the exe files gave errors. but the exe file created by > dev-c++ compiler > ran longer than the other(i.e it could try more to reach the result). > > the error message for both theexe files was > " this program has performed an illegal operation and will be > shut down" > > but the details causing the error were diffrent in the either case: > > When compiled with Dev-c++ compiler: > > KNIGHT caused a stack fault in module KERNEL32.DLL at 0167:bff7a2a1. > Registers: > EAX=0054fffc CS=0167 EIP=bff7a2a1 EFLGS=00000216 > EBX=78037780 SS=016f ESP=00552018 EBP=00552024 > ECX=c1413f00 DS=016f ESI=00000024 FS=4d3f > EDX=bffc9490 ES=016f EDI=81661bc0 GS=0000 > Bytes at CS:EIP: > 58 5f 8b e5 5d c3 a1 e8 9c fc bf 8b 08 ff 41 38 > Stack dump: > 81660a14 00000002 c1413f00 00552044 bff75d40 00000002 > 00000024 78037780 > bffa0001 81660a14 00000000 00552480 78011eb2 0000000c > 0055206c 00000002 > > > > When compiled with borland v5.5 compiler: > > KNIGHT caused a stack fault in module KNI.EXE at 0167:0041557a. > Registers: > EAX=00000006 CS=0167 EIP=0041557a EFLGS=00010206 > EBX=00562018 SS=016f ESP=00562000 EBP=0056205c > ECX=005624f1 DS=016f ESI=005624f1 FS=4d1f > EDX=00000000 ES=016f EDI=0000000a GS=0000 > Bytes at CS:EIP: > 55 53 56 57 8b 5c 24 14 8b 4c 24 18 0b c9 75 08 > Stack dump: > 00415991 0000000a 00000000 00000024 005625e6 00562664 > 004159a4 0000000a > 00000000 00000024 005625fe 00562664 00000001 00000020 > 0056260e 00562664 > > > cud some one tell me what i cud do? > i didnt use dynamic memory allocation in my program. > -riyaz > > ============================================================== > ========== > P.Mohammed riyaz > Student, Computer Science And Engineering > ============================================================== > ========== > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Jason H. <jas...@bt...> - 2002-03-06 16:29:34
|
I couldn't tell you exactly what the problem is without the seeing the source code, which I'm interested in doing anyway as it's not a problem I've come across before. However I can suggest what may be the cause. By any chance is the algorithm used a recursive one? That could be one reason you are getting a 'stack fault' as every time you call a method you are creating a new set of instance variables (amongst other things) on the stack for it, and there is only a limited amount of space allocated to the stack usualy. Notice that in both versions the stack pointer (ESP) is about 00560000h which is about 5 Meg assuming it started a zero. I think on intel machines that is the case? There may be another cause but that seems the most likely. If you are using a recursive function then try to reimplement it in a non-recursive manner, it will be faster that way too. If recursive calls are the cause, then this fault also suggests that there may be an error in the termination condition of the function(s), so you are going through an infinite number of recursive calls, although it may just be that the algorithm requires so many calls that the termination condition would never be met before a stack overflow. This is all just a stab in the dark without seeing the code, but I hope it helps. Jason ----- Original Message ----- From: "Mohammed Riyaz" <p_m...@ho...> To: <dev...@li...> Sent: Wednesday, March 06, 2002 7:43 AM Subject: [Dev-C++] help > > Hey guys, > > i wrote a program to solve the knight's problem.(move to every block on the > chess board using the knight's movements, but never reach the same block > twice.) > > I feel though i coded the program right my system is unable to run the > program. > > In order to test it i compiled the program with two compilers, as a result > both the exe files gave errors. but the exe file created by dev-c++ compiler > ran longer than the other(i.e it could try more to reach the result). > > the error message for both theexe files was > " this program has performed an illegal operation and will be shut down" > > but the details causing the error were diffrent in the either case: > > When compiled with Dev-c++ compiler: > > KNIGHT caused a stack fault in module KERNEL32.DLL at 0167:bff7a2a1. > Registers: > EAX=0054fffc CS=0167 EIP=bff7a2a1 EFLGS=00000216 > EBX=78037780 SS=016f ESP=00552018 EBP=00552024 > ECX=c1413f00 DS=016f ESI=00000024 FS=4d3f > EDX=bffc9490 ES=016f EDI=81661bc0 GS=0000 > Bytes at CS:EIP: > 58 5f 8b e5 5d c3 a1 e8 9c fc bf 8b 08 ff 41 38 > Stack dump: > 81660a14 00000002 c1413f00 00552044 bff75d40 00000002 00000024 78037780 > bffa0001 81660a14 00000000 00552480 78011eb2 0000000c 0055206c 00000002 > > > > When compiled with borland v5.5 compiler: > > KNIGHT caused a stack fault in module KNI.EXE at 0167:0041557a. > Registers: > EAX=00000006 CS=0167 EIP=0041557a EFLGS=00010206 > EBX=00562018 SS=016f ESP=00562000 EBP=0056205c > ECX=005624f1 DS=016f ESI=005624f1 FS=4d1f > EDX=00000000 ES=016f EDI=0000000a GS=0000 > Bytes at CS:EIP: > 55 53 56 57 8b 5c 24 14 8b 4c 24 18 0b c9 75 08 > Stack dump: > 00415991 0000000a 00000000 00000024 005625e6 00562664 004159a4 0000000a > 00000000 00000024 005625fe 00562664 00000001 00000020 0056260e 00562664 > > > cud some one tell me what i cud do? > i didnt use dynamic memory allocation in my program. > -riyaz > > ======================================================================== > P.Mohammed riyaz > Student, Computer Science And Engineering > ======================================================================== > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: vahid k. <vk...@ho...> - 2002-06-01 02:02:06
|
dear sir, i wnt to know how i can add gtk+ package to my dev c++, thanks=20 |
From: Hongli L. <h....@ch...> - 2002-06-01 07:47:22
|
On Sat, 2002-06-01 at 04:01, vahid kazemi wrote: > dear sir, > i wnt to know how i can add gtk+ package to my dev c++, > thanks Hint: read the instructions.... |
From: Ralf T. <ra...@gm...> - 2002-06-10 08:22:26
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of dev...@li... > Sent: Samstag, 8. Juni 2002 05:23 > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #807 - 6 msgs > > > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more > specific than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. MINGW GCC 3.1 for Windows is out there (Ioannis Vranos) > 2. MINGW GCC 3.x II (Ioannis Vranos) > 3. merging two sorted lists using file streams... (chromatonus 712) > 4. RE: #include <ios> (Ioannis Vranos) > 5. RE: #include <ios> (Ioannis Vranos) > 6. Re: merging two sorted lists using file streams... > (Jason Hardman) > > --__--__-- > > Message: 1 > From: "Ioannis Vranos" <no...@ho...> > To: "Dev-C++ Mailing List" <dev...@li...> > Date: Sat, 8 Jun 2002 01:13:03 +0300 > Subject: [Dev-C++] MINGW GCC 3.1 for Windows is out there > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0001_01C20E89.A3D41990 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: 7bit > > I decided to take a look at MINGW site and saw that there are > recent distributions of many components of MINGW including a > GCC 3.1 release! But there is not yet a newest "official" > distribution of MINGW yet (there is still the classic 1.1 of > 2001 release). However i have the feeling that one is about > to come soon (but "soon" can be even months). > > > Anyway for all coders out there who can handle this kind of > things, can download the latest GCC 3.1 core distribution and > the latest MINGW run time, and uncompress them above their > current MINGW distribution. > > > As expected the latest GCC is far more compliant than the 2.x > series so the code below compiles happily: > > > #include <vector> > #include <iostream> > #include <stdexcept> > > int main() try > { > using namespace std; > > vector<int>array(50); > > for(unsigned i=0; i<100; i++) > cout<<(array.at(i)=i)<<" "; > > } > > catch(std::out_of_range) > { > std::cout<<"\n\nBe careful dude! What are you doing dude?\n"; } > > > But before you decide to do the hack update, be careful that > you must know what you are doing. If you do not know how to > do this kind of things then wait for the official MINGW > distribution when it becomes available, or the Dev-C++ > version that will include it. > > > What i have done (not tested with Dev-C++): > > 1) I downloaded the files > > http://telia.dl.sourceforge.net/sourceforge/mingw/gcc-3_1-core > -20020516- > 1.tar.gz > (about 600k) > > > http://telia.dl.sourceforge.net/sourceforge/mingw/mingw-runtim > e-2.0-2002 > 0430.tar.gz > (about 10 MB) > > > 2) I uncompressed the first on a temporary empty folder and > then cut & paste above my old MINGW distribution. > > Then i uncompressed the second on the temporary empty folder > and then cut & paste above my old MINGW distribution. > > > 3) Everything works happily: > > C:\>g++ -v > Reading specs from c:/mingw/bin/../lib/gcc-lib/mingw32/3.1/specs > Configured with: ../gcc/configure --with-gcc --with-gnu-ld > --with-gnu-as --host= mingw32 --target=mingw32 > --prefix=/mingw --enable-threads --disable-nls --enable > -languages=f77,c++,objc,ada --disable-win32-registry > --disable-shared Thread model: win32 gcc version 3.1 > > C:\>gcc -v > Reading specs from c:/mingw/bin/../lib/gcc-lib/mingw32/3.1/specs > Configured with: ../gcc/configure --with-gcc --with-gnu-ld > --with-gnu-as --host= mingw32 --target=mingw32 > --prefix=/mingw --enable-threads --disable-nls --enable > -languages=f77,c++,objc,ada --disable-win32-registry > --disable-shared Thread model: win32 gcc version 3.1 > > > C:\c>g++ temp.cpp -o temp -ansi -pedantic-errors -Wall > -fexpensive-optimizations -O3 -ffloat-store -mcpu=pentiumpro > > C:\c>temp > 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 > 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 > 44 45 46 47 48 49 > > Be careful dude! What are you doing dude? > > C:\c> > > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > <http://www.noicys.cjb.net/> > * Alternative URL: http://run.to/noicys > > ------=_NextPart_000_0001_01C20E89.A3D41990 > Content-Type: text/html; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 > Transitional//EN"> <HTML><HEAD> <META > HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = > charset=3Dus-ascii"> <TITLE>Message</TITLE> > > <META content=3D"MSHTML 6.00.2716.2200" > name=3DGENERATOR></HEAD> <BODY> <DIV><STRONG><FONT > face=3DArial color=3D#000080 size=3D2><SPAN=20 > class=3D163515821-07062002>I decided to take a look at MINGW > site and = saw that=20 there are recent distributions > of many components of MINGW = including a GCC=20 3.1 > release! But there is not yet a newest "official" > distribution = of MINGW=20 yet (there is still the classic > 1.1 of 2001 release). However = i have=20 the > feeling that one is about to come soon (but "soon" can be > even=20 months).</SPAN></FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002>Anyway for all > coders out there who can = handle this=20 kind of things, can > download the latest GCC 3.1 core distribution and = the > latest=20 MINGW run time, and uncompress them above their > current MINGW = distribution.=20 > </SPAN></FONT></STRONG></DIV> <DIV><STRONG><FONT face=3DArial > color=3D#000080 size=3D2><SPAN=20 > class=3D163515821-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002>As expected the > latest GCC is far more = compliant than=20 the 2.x series so > the code below compiles = happily:</SPAN></FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002>#include > <vector><BR>#include=20 <iostream><BR>#include = > <stdexcept></SPAN></FONT></STRONG></DIV> > <DIV> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002>int main() > try<BR>{<BR> using namespace = > > std;</SPAN></FONT></STRONG></DIV> > <DIV> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002> =20 > vector<int>array(50);</SPAN></FONT></STRONG></DIV> > <DIV> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002> > for(unsigned i=3D0; i<100;=20 > i++)<BR> > i++cout<<(array.at(i)=3Di)<<"=20 > ";</SPAN></FONT></STRONG></DIV> > <DIV> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002>}</SPAN></FONT></STRONG></DIV> > <DIV> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D163515821-07062002>catch(std::out_of_range)<BR>{<BR> =20 > std::cout<<"\n\nBe careful dude! What are you doing=20 > dude?\n";<BR>}</SPAN></FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV><SPAN class=3D163515821-07062002><FONT face=3DArial > color=3D#000080 = > > size=3D2><STRONG>But before you decide to do the hack update, > be careful = that you=20 must know what you are doing. If you > do not know how to do this kind of = things=20 then wait for > the official MINGW distribution when it becomes available, = or the=20 > Dev-C++ version that will include it.</STRONG></FONT></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2>What i have done > (not tested with = > Dev-C++):</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2>1) I downloaded the files</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2><A=20 > href=3D"http://telia.dl.sourceforge.net/sourceforge/mingw/gcc- > 3_1-core-20= > 020516-1.tar.gz">http://telia.dl.sourceforge.net/sourceforge/m > ingw/gcc-3_= > 1-core-20020516-1.tar.gz</A></FONT></STRONG></SPAN></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 class=3D163515821-07062002>(about > 600k)</SPAN></FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2><A=20 > href=3D"http://telia.dl.sourceforge.net/sourceforge/mingw/ming > w-runtime-2= > .0-20020430.tar.gz">http://telia.dl.sourceforge.net/sourceforg > e/mingw/min= > gw-runtime-2.0-20020430.tar.gz</A></FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2>(about 10 > MB)</FONT></STRONG></SPAN></DIV> <DIV><SPAN > class=3D163515821-07062002><STRONG><FONT face=3DArial = > color=3D#000080=20 size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2>2) I uncompressed the first on a temporary empty > folder and = then cut=20 & paste above my old MINGW = > distribution.</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2>Then i > uncompressed the second on the temporary empty = folder > and=20 then cut & paste above my old MINGW=20 > distribution.</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2>3) Everything works happily:</FONT></STRONG></SPAN></DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2>C:\>g++ > -v<BR>Reading specs from=20 > c:/mingw/bin/../lib/gcc-lib/mingw32/3.1/specs<BR>Configured > with:=20 ../gcc/configure --with-gcc --with-gnu-ld > --with-gnu-as = --host=3D<BR>mingw32=20 --target=3Dmingw32 > --prefix=3D/mingw --enable-threads --disable-nls=20 > --enable<BR>-languages=3Df77,c++,objc,ada > --disable-win32-registry=20 --disable-shared<BR>Thread model: > win32<BR>gcc version=20 3.1</FONT></STRONG></SPAN></DIV> > <DIV> </DIV> <DIV><SPAN > class=3D163515821-07062002><STRONG><FONT face=3DArial = > color=3D#000080=20 size=3D2>C:\>gcc -v<BR>Reading specs > from=20 > c:/mingw/bin/../lib/gcc-lib/mingw32/3.1/specs<BR>Configured > with:=20 ../gcc/configure --with-gcc --with-gnu-ld > --with-gnu-as = --host=3D<BR>mingw32=20 --target=3Dmingw32 > --prefix=3D/mingw --enable-threads --disable-nls=20 > --enable<BR>-languages=3Df77,c++,objc,ada > --disable-win32-registry=20 --disable-shared<BR>Thread model: > win32<BR>gcc version=20 3.1</FONT></STRONG></SPAN></DIV> > <DIV> </DIV> <DIV><SPAN > class=3D163515821-07062002><STRONG><FONT face=3DArial = > color=3D#000080=20 size=3D2></FONT></STRONG></SPAN> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2>C:\c>g++ > temp.cpp -o temp -ansi -pedantic-errors -Wall=20 > -fexpensive-optimizations<BR> -O3 -ffloat-store=20 > -mcpu=3Dpentiumpro</FONT></STRONG></SPAN></DIV> > <DIV> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 size=3D2>C:\c>temp<BR>0 > 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 = 19 20 21=20 22 > 23 24 25 26 27 28 29<BR>30 31 32 33 34 35 36 37 38 39 40 41 > 42 43 44 = 45 46 47=20 48 49</FONT></STRONG></SPAN></DIV> > <DIV> </DIV> <DIV><SPAN > class=3D163515821-07062002><STRONG><FONT face=3DArial = > color=3D#000080=20 size=3D2>Be careful dude! What are you > doing = dude?</FONT></STRONG></SPAN></DIV> > <DIV> </DIV> > <DIV><SPAN class=3D163515821-07062002><STRONG><FONT > face=3DArial = color=3D#000080=20 > size=3D2>C:\c></FONT></STRONG></SPAN></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 = > size=3D2></FONT></STRONG> </DIV> > <DIV> </DIV> > <DIV align=3Dleft> > <DIV align=3Dleft><FONT face=3DArial color=3D#000080 = > size=3D2><STRONG>Ioannis<BR><BR>*=20 > Ioannis Vranos<BR>* Programming pages: <A=20 > href=3D"http://www.noicys.cjb.net/">http://www.noicys.cjb.net< > /A></STRONG= > ></FONT></DIV> > <DIV align=3Dleft><FONT face=3DArial color=3D#000080 > size=3D2><STRONG>* = Alternative URL:=20 <A=20 > href=3D"http://run.to/noicys">http://run.to/noicys</A></STRONG > ></FONT></D= > IV></DIV></BODY></HTML> > > ------=_NextPart_000_0001_01C20E89.A3D41990-- > > > --__--__-- > > Message: 2 > From: "Ioannis Vranos" <no...@ho...> > To: "Dev-C++ Mailing List" <dev...@li...> > Date: Sat, 8 Jun 2002 01:30:20 +0300 > Subject: [Dev-C++] MINGW GCC 3.x II > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0001_01C20E8C.0D6A8450 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: 7bit > > And the release notes for the MINGW GCC 3.1: > http://sourceforge.net/project/shownotes.php?release_id=90000 > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > <http://www.noicys.cjb.net/> > * Alternative URL: http://run.to/noicys > > > ------=_NextPart_000_0001_01C20E8C.0D6A8450 > Content-Type: text/html; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 > Transitional//EN"> <HTML><HEAD> <META > HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = > charset=3Dus-ascii"> <TITLE>Message</TITLE> > > <META content=3D"MSHTML 6.00.2716.2200" > name=3DGENERATOR></HEAD> <BODY> <DIV><STRONG><FONT > face=3DArial color=3D#000080 size=3D2><SPAN=20 > class=3D171472922-07062002>And the release notes for the > MINGW GCC 3.1: = <A=20 > href=3D"http://sourceforge.net/project/shownotes.php?release_i > d=3D90000">= > http://sourceforge.net/project/shownotes.php?release_id=3D9000 > 0</A></SPAN= > ></FONT></STRONG></DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D171472922-07062002></SPAN></FONT></STRONG> </DIV> > <DIV><STRONG><FONT face=3DArial color=3D#000080 > size=3D2><SPAN=20 > class=3D171472922-07062002></SPAN></FONT></STRONG> </DIV> > <DIV> </DIV> > <DIV align=3Dleft> > <DIV align=3Dleft><FONT face=3DArial color=3D#000080 = > size=3D2><STRONG>Ioannis<BR><BR>*=20 > Ioannis Vranos<BR>* Programming pages: <A=20 > href=3D"http://www.noicys.cjb.net/">http://www.noicys.cjb.net< > /A></STRONG= > ></FONT></DIV> > <DIV align=3Dleft><FONT face=3DArial color=3D#000080 > size=3D2><STRONG>* = Alternative URL:=20 <A=20 > href=3D"http://run.to/noicys">http://run.to/noicys</A></STRONG > ></FONT></D= > IV></DIV> > <DIV> </DIV></BODY></HTML> > > ------=_NextPart_000_0001_01C20E8C.0D6A8450-- > > > --__--__-- > > Message: 3 > From: "chromatonus 712" <chr...@ho...> > To: dev...@li... > Date: Sat, 08 Jun 2002 00:48:36 +0000 > Subject: [Dev-C++] merging two sorted lists using file streams... > > Hi, here is my program that is suppose to read one piece of > data from 2 > different sorted lists each, > > like these two text files: > > File A: > 1 > 2 > 4 > 8 > 16 > File B: > 0 > 1 > 1 > 2 > 3 > 5 > 8 > > output should be > File C: > 0 1 1 1 2 2 3 4 5 8 8 16 > > Would anyone give a sample program that performs this > function, using only > the "basic" file stream operations as in my program below? > Thank you very > much > > #include "apstring.h" > #include <iostream.h> > #include <fstream.h> > #include <conio.h> > > int main() > { > ifstream a; ifstream b; > ofstream c; > a.open("A.dat"); > b.open("B.dat"); > int ark, bum, j, k, temp; > a >> ark; > a.ignore(80,'\n'); > j = ark; > b >> bum; > b.ignore(80,'\n'); > k = bum; > if( ark < bum ) > { > c << ark << endl; > a >> ark; > a.ignore(80,'\n'); > temp = ark; > } > else > { > c << bum << endl; > b >> bum; > b.ignore(80,'\n'); > temp = bum; > } > if(j<k) > { > while( b>>bum && bum<temp ) > { > b >> bum; > b.ignore(80,'\n'); > c << bum << endl; > b >> bum; > b.ignore(80,'\n'); > } > c << temp << endl; > temp = bum; > } > else > { > while( a>>ark && ark<temp ) > { > a >> ark; > a.ignore(80,'\n'); > c << ark << endl; > a >> ark; > a.ignore(80,'\n'); > } > c << temp << endl; > temp = ark; > } > while( c << temp ) > { > cout << temp << endl; > } > system("PAUSE"); > a.close(); > b.close(); > c.close(); > > > return 0; > } > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > --__--__-- > > Message: 4 > From: "Ioannis Vranos" <no...@ho...> > To: "Dev-C++ Mailing List" <dev...@li...> > Subject: RE: [Dev-C++] #include <ios> > Date: Sat, 8 Jun 2002 05:29:34 +0300 > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Bob Wilson > > Sent: Thursday, June 06, 2002 3:33 AM > > To: Dev-C++ User Mailing List > > Subject: Re: [Dev-C++] #include <ios> > > > > > **IMPORTANT NOTE FOR NEW C++ PROGRAMMERS ** > > > Also, there is no such thing as an "ANSI C++ compliant > > compiler" -- *all* > > > current compilers fail the conformance tests in various > > ways. This means > > > that sample code inevitably needs to be modified for > > different compilers. > > > > For the simplist programs, however, there should not be any > > modifications > > required. Just out of curiosity, do you know of a "knowledge > > base" that > > summarizes the changes that are often reuired from compiler > > to compiler? > > > Not for the simplest only. There is no need for such a knowledge base, > because ANSI C++ conformance will be improving continually. > Do not think > that there will remain gray areas at the end, as for ANSI SQL > conformance for example. There are already compilers with 100% > conformance. > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > --__--__-- > > Message: 5 > From: "Ioannis Vranos" <no...@ho...> > To: "Dev-C++ Mailing List" <dev...@li...> > Subject: RE: [Dev-C++] #include <ios> > Date: Sat, 8 Jun 2002 05:45:05 +0300 > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Mac Reiter > > Sent: Thursday, June 06, 2002 12:00 AM > > To: Dev-C++ User Mailing List > > Subject: Re: [Dev-C++] #include <ios> > > > > > > Daniel: > > > > The <ios> header is generally not needed, and should have > > been included by > > other iostreams headers. I suspect that the GCC or MinGW > > people simply > > removed the standalone header, or perhaps it is present but > > can only be > > found if you specify <ios.h> instead of just <ios>. (The <ios.h> is > > *purely* a guess and I haven't run any checks at all). Since > > Dev-C++ is > > "just" the editor/debugger/project manager, and it uses the > GCC/MinGW > > toolchain for actual compilation, these kinds of issues will depend > > entirely on how the GCC/MinGW tools work. > > > > <ios> is needed when you want to use the facilities icnluded > in it. You > can not depend if a header file is included in another when > not defined > by the standard (if you wat the code to be portable, not even among > different compilers and platforms, but even to the next > version of your > favorite compiler). > > You *must not* care about implementation details inside your code, and > certainly not connect your code with them. It is the > compiler's job for > what headers it #include s inside other header files. > > > > Microsoft's take on <ios> is given in the following MSDN article: > > > > http://msdn.microsoft.com/library/default.asp?url=/library/en- > > us/vcstdlib/ht > > ml/vclrfios_header.asp > > > > Basically, you could simply remove the <ios> line entirely, and both > > compilers would be happy and you wouldn't need the > > preprocessor commands > > ("ifndef", etc). I'm gonna guess that the book was written > > some time ago, > > some of the C++ standards changed along the way, and not all > > of the sample > > code got updated. > > > No the book is ANSI C++ compliant (at least as far as i know, and C++ > god approves it, and god only approves excellent ANSI C++ compliant > books). > > > > > > > **IMPORTANT NOTE FOR NEW C++ PROGRAMMERS ** > > Also, there is no such thing as an "ANSI C++ compliant > > compiler" > > > Of course there is. Try Intel C++ compiler for example. > > > > -- *all* > > current compilers fail the conformance tests in various ways. > > > Not all. And standard conformance is increased day by day to the rest > compilers too. Camaeu is another 100% conformant compiler > too. And there > are probably others too (perhaps GCC 3.x is 100% compliant too). > > > > This means > > that sample code inevitably needs to be modified for > > different compilers. > > > Things are improving day by day. The standard is very recent (late of > 1998) for *everything* to be implemented immediately. And C++ is a > multiparadigm language, that means it is like 4+ languages together (4 > paradigms and many space/time efficiency concerns since it is intended > for mission critical applications too (OSes, etc). > > > > "Portable" code, for the time being, requires preprocessor > > directives like > > the one shown to change the code based on which compiler is > > being used. > > > No. Simply you code for the compiler you intend to use > thinking of full > ansi C++ and then if something does not compile, you change it with > something that does. If you write a library or something and you care > for many compilers out there, i wouldn't care but code as freely as i > can knowing that since things are improving day by day everything will > be soon ok for them too. That is, i can't think of an occasion why i > would need #ifndefs for portability, and i can't think for > any possible > reason to do so. > > #ifndefs are used to make portable code using compiler extensions not > for ANSI C++ code.Ioannis > > I think you have confused ANSI C++ code with system specific > code (e.g. > Win32 library calls). > > > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > > --__--__-- > > Message: 6 > From: "Jason Hardman" <jas...@nt...> > To: "Dev-C++" <dev...@li...> > Subject: Re: [Dev-C++] merging two sorted lists using file streams... > Date: Sat, 8 Jun 2002 04:22:11 +0100 > > Quick tip: > > get 'a' > get 'b' > repeat > if 'a' is greater than 'b' > output 'b' > get 'b' > else > output 'a' > get 'a' > until one of the streams is empty > > This is a simplistic algorithm for you to follow, but it > demonstrates the way two sorted streams can > be "merged" (lookup that word in an algorithms book). There > is still one more thing for you to add: > When one of the streams runs out then you need to continue > feeding from the other and outputing it > until it is also empty. And don't forget that the streams may > be empty to start with! (tip: use a > while loop) > > It would be wise for you to figure the rest out yourself, but > one more tip: If you are repeating the > same steps several times in different places in a program, > then it's a good idea to make those steps > into a function (i.e. getFromStream(); outputToStream();). > Meaningful variable names also help > (instream_a, instream_b, outstream) > > Jason. > > PS: Not as quick a tip as I had planned, but at least I > didn't hand everything to you on a plate. > > ----- Original Message ----- > From: "chromatonus 712" <chr...@ho...> > To: <dev...@li...> > Sent: Saturday, June 08, 2002 1:48 AM > Subject: [Dev-C++] merging two sorted lists using file streams... > > > Hi, here is my program that is suppose to read one piece of > data from 2 > different sorted lists each, > > like these two text files: > > File A: > 1 > 2 > 4 > 8 > 16 > File B: > 0 > 1 > 1 > 2 > 3 > 5 > 8 > > output should be > File C: > 0 1 1 1 2 2 3 4 5 8 8 16 > > Would anyone give a sample program that performs this > function, using only > the "basic" file stream operations as in my program below? > Thank you very > much > > #include "apstring.h" > #include <iostream.h> > #include <fstream.h> > #include <conio.h> > > int main() > { > ifstream a; ifstream b; > ofstream c; > a.open("A.dat"); > b.open("B.dat"); > int ark, bum, j, k, temp; > a >> ark; > a.ignore(80,'\n'); > j = ark; > b >> bum; > b.ignore(80,'\n'); > k = bum; > if( ark < bum ) > { > c << ark << endl; > a >> ark; > a.ignore(80,'\n'); > temp = ark; > } > else > { > c << bum << endl; > b >> bum; > b.ignore(80,'\n'); > temp = bum; > } > if(j<k) > { > while( b>>bum && bum<temp ) > { > b >> bum; > b.ignore(80,'\n'); > c << bum << endl; > b >> bum; > b.ignore(80,'\n'); > } > c << temp << endl; > temp = bum; > } > else > { > while( a>>ark && ark<temp ) > { > a >> ark; > a.ignore(80,'\n'); > c << ark << endl; > a >> ark; > a.ignore(80,'\n'); > } > c << temp << endl; > temp = ark; > } > while( c << temp ) > { > cout << temp << endl; > } > system("PAUSE"); > a.close(); > b.close(); > c.close(); > > > return 0; > } > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > _______________________________________________________________ > > 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 > > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.361 / Virus Database: 199 - Release Date: 07.05.2002 > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date: 07.05.2002 |
From: Ioannis V. <no...@ho...> - 2002-06-10 09:39:26
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Ralf Terdic > Sent: Monday, June 10, 2002 11:22 AM > To: dev...@li... > Subject: [Dev-C++] help [...] And the question is? Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
From: <Pa...@ad...> - 2003-02-25 19:16:52
|
help in unsubscribing please.. dev...@li... on 26/02/2003 03:11:12 Please respond to dev...@li... To: dev...@li... cc: (bcc: Paul Remnant/PEC/NZ) Subject: Dev-cpp-users digest, Vol 1 #1305 - 7 msgs Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Re: need some explanation (Ioannis Vranos) 2. Re: Errors when compiling with STL linked (Ioannis Vranos) 3. Re: need some explanation (iad929) 4. Re: Errors when compiling with STL linked (Per Westermark) 5. Re: need some explanation (Vlada Djurovic) 6. Re: Errors when compiling with STL linked (Daniel Glenfield) 7. Re: need some explanation (Ioannis Vranos) --__--__-- Message: 1 Date: Tue, 25 Feb 2003 15:20:19 +0200 (GTB Standard Time) From: "Ioannis Vranos" <no...@ho...> To: <dev...@li...> Subject: Re: [Dev-C++] need some explanation --------------Boundary-00=_V19VH890000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_V19VCJD0000000000000" --------------Boundary-00=_V19VCJD0000000000000 Content-Type: Text/Plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable -------Original Message-------=0D =0D From: Vlada Djurovic=0D Date: =D4=F1=DF=F4=E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 10:55:58= =F0=EC=0D To: 'DevC++ help'=0D Subject: [Dev-C++] need some explanation=0D =0D Hi, everybody=0D I hope someone can explain this to me. When I write this:=0D =0D #include <iostream>=0D #include <stdlib>=0D =0D using namespace std;=0D =0D I get error like "stdlib: No such file or directory".=0D =0D =0D #include <cstdlib>=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 --------------Boundary-00=_V19VCJD0000000000000 Content-Type: Text/HTML; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-= 7"> <META content=3D"IncrediMail 1.0" name=3DGENERATOR> <!--IncrdiXMLRemarkStart> <IncrdiX-Info> <X-FID>BA285063-5BCE-11D4-AF8D-0050DAC67E11</X-FID> <X-FVER></X-FVER> <X-FIT></X-FIT> <X-FCOL></X-FCOL> <X-FCAT></X-FCAT> <X-FDIS></X-FDIS> <X-BG>B682586A-3478-4C83-9BB6-0E0F0265D4B1</X-BG> <X-BGT>repeat</X-BGT> <X-BGC>#eff3f7</X-BGC> <X-BGPX>left</X-BGPX> <X-BGPY>0px</X-BGPY> <X-ASN>ANIM3D00-NONE-0000-0000-000000000000</X-ASN> <X-ASNF>0</X-ASNF> <X-ASH>ANIM3D00-NONE-0000-0000-000000000000</X-ASH> <X-ASHF>1</X-ASHF> <X-AN>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AN> <X-ANF>0</X-ANF> <X-AP>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AP> <X-APF>1</X-APF> <X-AD>C3C52140-4147-11D4-BA3D-0050DAC68030</X-AD> <X-ADF>0</X-ADF> <X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO> <X-CNT>;</X-CNT> </IncrdiX-Info> <IncrdiXMLRemarkEnd--> </HEAD> <BODY style=3D"BACKGROUND-POSITION: left 0px; FONT-SIZE: 12pt; MARGIN: 0p= x 10px 10px; BACKGROUND-REPEAT: repeat; FONT-FAMILY: Arial" text=3D#00005= b bgColor=3D#eff3f7 background=3Dcid:B682586A-3478-4C83-9BB6-0E0F0265D4B1= scroll=3Dyes SIGCOLOR=3D"0" X-ADF=3D"0" X-AD=3D"C3C52140-4147-11D4-BA3D-= 0050DAC68030" X-APF=3D"1" X-AP=3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X= -ANF=3D"0" X-AN=3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X-ASHF=3D"1" X-A= SH=3D"ANIM3D00-NONE-0000-0000-000000000000" X-ASNF=3D"0" X-ASN=3D"ANIM3D0= 0-NONE-0000-0000-000000000000" X-FVER=3D"2.0" X-FID=3D"BA285063-5BCE-11D4= -AF8D-0050DAC67E11" X-FIT=3D"Letter" X-FCOL=3D"Elegant Paper" X-FCAT=3D"E= legant Paper" X-FDIS=3D"Rice Fields" ORGYPOS=3D"0"> <TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100= %" border=3D0> <TBODY> <TR> <TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F= AMILY: Arial" vAlign=3Dtop width=3D"100%"> <DIV><I>-------Original Message-------</I></DIV> <DIV> </DIV> <DIV id=3Dreceivestrings> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A href=3D"m= ailto:dj...@im...">Vlada Djurovic</A></DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> =D4=F1=DF=F4= =E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 10:55:58 =F0=EC</DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A href=3D"mai= lto:dev...@li...">'DevC++ help'</A></DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> [Dev-C++]= need some explanation</DIV></DIV> <DIV> </DIV> <DIV>Hi, everybody<BR>I hope someone can explain this to me. When I write= this:<BR><BR>#include <iostream><BR>#include <stdlib><BR><BR= >using namespace std;<BR><BR>I get error like "stdlib: No such file or di= rectory".</DIV> <DIV> </DIV> <DIV> </DIV> <DIV><STRONG>#include <cstdlib></STRONG><BR></DIV> <DIV> </DIV> <DIV> </DIV> <P>Ioannis Vranos<BR><BR>* Programming pages: <A href=3D"http://www.noicy= s.freeurl.com/">http://www.noicys.freeurl.com</A><BR>* Alternative URL: <= A href=3D"http://run.to/noicys">http://run.to/noicys</A> </P></TD></TR> <TR> <TD id=3DINCREDIFOOTER width=3D"100%"> <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%"> <TBODY> <TR> <TD width=3D"100%"></TD> <TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD> <TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T= ABLE></TD></TR></TBODY></TABLE></BODY></HTML> --------------Boundary-00=_V19VCJD0000000000000-- --------------Boundary-00=_V19VH890000000000000 Content-Type: Image/jpeg; name="BackGrnd.jpg" Content-ID: <B682586A-3478-4C83-9BB6-0E0F0265D4B1> Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA EAMCAwYAAAHbAAAC1gAABZX/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIAGUAcwMBIgACEQEDEQH/ xACAAAEBAQEAAAAAAAAAAAAAAAAAAQIGAQEBAAAAAAAAAAAAAAAAAAAAARABAAICAwEAAgMAAAAA AAAAAQARIQIxQRIiQDIQMFARAAICAgIBBAIDAQEAAAAAAAERACExQVFhcYGRobECEsHhMtHxEgEA AAAAAAAAAAAAAAAAAABQ/9oADAMBAAIRAxEAAADtRZYE1ASghQFgUZoCkKSwLmhcllAEqkSkqFAl hUomoAS3IoJqFlDNpFEAQFE1AIVYAWIVKAJRNZpYCwVmmshKACA0CBAUCBYGwf/aAAgBAgABBQD8 B/yP/9oACAEDAAEFAPz6/or8H//aAAgBAQABBQC2+ZeHjbD+saX6hwXeDW1Rg4xLLTa+m7ZiIEsI 1MTiHP1dYpvFADiFM1/X6nq9byuwdPPz5oFofWlEMQ9ULKrWq2ppG9Y2J6INQma9lVTRdlUKgHzX XSEECw1SYu5WsGoJPkisZYpx31GvXZQ/JM3VwShzVTsp1EZbBI8LcaUSih86+s2Zl4Wp6+lAZnVs Dkjdku5m+lJTdXDG2SHM9M2wKX1YxsaZTTwmoVrYnqsMrM652yjs01K0mtbGAz6Y5dpfqNz06qpq 5QNjiIjiZtbhtceNuf0jyeqGgu6rXMvI4omPWbPMYzEfMI+axHnFvOP4/9oACAECAgY/AGP/2gAI AQMCBj8AY//aAAgBAQEGPwB72Yucb1BfIhFEaeZ+xRXFQELN+HEUQdjU0Xn4g9gRCQcpw1yajGYs P/kFvUzvjUBWrIMFHI2OJQNEAjiEEFdTmfG/MTHq5RFOnpTV3kzCBx7x4YOD1AV5uYJvnqMA0hep jfwpYCwC4Bx3q55zeZRBCw9TkoIuHw78RdczSNH2mgqcLpRC+RASAkA3B13mcYd5mR84c/yOx4lW tRAZ6mGDhiP9WgXVyhWA+xDgMOWGMsTg/wBTz8SjjXrP8hHIlX1MZ6mDzgc/cIV/iyN1GBR0MQMK jnEzvvMz8mUkErKlfqU63iV+IKNH7mNZBLFQEpEDeDOV32IVn8WR4caoywqI2p695mbZzNUQIcKf k0bo+0NpCqn7CiQiNGXkdQen1DpjGeZ7WNw3pK+I93maCPc16+Zkf6XxMCsFwAkaiIB57vc/IAhZ /HqZBBbB0ZokAEOGxsYqBgPp8agQBu4VSMJdqx6SwDsGBrTmAR93uZGX6KePowEADAIjoX8gw459 CICaW/MLGvodQfkDW71zBxRHtB3j3jC4PMIYoAgKNfPMCQNN7jCzvlzXPopzhQvNZY3CRya9ZrEF fRE0iCB5mscZuVYfKmAi94uE3Q8qfytQ7xD0svmFcmaxNPI8iMjh3pmF2HbzqeUi+YkiD/MrOl5L mbwPuWVfmXpv3hDH8qAjPpiZHXkRnSd6ZhB53mejzKV6US0K9TCCLyCeIhtETX5MsHBGJkD/ANiF kMCE2qGoCdZ8Q8AMGpYFqEhdhRIYH3CF3d1M/Mexma+4CwdQ2Ddcx0exAlmj04QUQd8QWLB/iB5G xmEg5TENVZqPYzFV8eHAy9T/AEc8a4n3Ov6g/VwvE6lpQ4VNysXzhS8esOO8w/rlF/rypjV3B5H1 Knr8T//Z --------------Boundary-00=_V19VH890000000000000-- --__--__-- Message: 2 Date: Tue, 25 Feb 2003 15:23:21 +0200 (GTB Standard Time) From: "Ioannis Vranos" <no...@ho...> To: <dev...@li...> Subject: Re: [Dev-C++] Errors when compiling with STL linked --------------Boundary-00=_X69V24L0000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_X69VXFP0000000000000" --------------Boundary-00=_X69VXFP0000000000000 Content-Type: Text/Plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable -------Original Message-------=0D =0D From: Faust, Markus=0D Date: =D4=F1=DF=F4=E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 2:35:01 = =EC=EC=0D To: 'dev...@li...'=0D Subject: [Dev-C++] Errors when compiling with STL linked=0D =0D Hi,=0D =0D When compling the file=0D =0D #include <iostream>=0D #include <stdlib.h>=0D #include <list>=0D =0D using namespace std;=0D =0D void f()=0D {=0D list<double> l;=0D for (int i=3D3D0; i<1000000;i++) l.push_back(i);=0D =0D =0D What is 3D0?=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 --------------Boundary-00=_X69VXFP0000000000000 Content-Type: Text/HTML; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-= 7"> <META content=3D"IncrediMail 1.0" name=3DGENERATOR> <!--IncrdiXMLRemarkStart> <IncrdiX-Info> <X-FID>BA285063-5BCE-11D4-AF8D-0050DAC67E11</X-FID> <X-FVER></X-FVER> <X-FIT></X-FIT> <X-FCOL></X-FCOL> <X-FCAT></X-FCAT> <X-FDIS></X-FDIS> <X-BG>D255FF1A-03A6-42B0-92F2-FF712E4222CE</X-BG> <X-BGT>repeat</X-BGT> <X-BGC>#eff3f7</X-BGC> <X-BGPX>left</X-BGPX> <X-BGPY>0px</X-BGPY> <X-ASN>ANIM3D00-NONE-0000-0000-000000000000</X-ASN> <X-ASNF>0</X-ASNF> <X-ASH>ANIM3D00-NONE-0000-0000-000000000000</X-ASH> <X-ASHF>1</X-ASHF> <X-AN>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AN> <X-ANF>0</X-ANF> <X-AP>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AP> <X-APF>1</X-APF> <X-AD>C3C52140-4147-11D4-BA3D-0050DAC68030</X-AD> <X-ADF>0</X-ADF> <X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO> <X-CNT>;</X-CNT> </IncrdiX-Info> <IncrdiXMLRemarkEnd--> </HEAD> <BODY style=3D"BACKGROUND-POSITION: left 0px; FONT-SIZE: 12pt; MARGIN: 0p= x 10px 10px; BACKGROUND-REPEAT: repeat; FONT-FAMILY: Arial" text=3D#00005= b bgColor=3D#eff3f7 background=3Dcid:D255FF1A-03A6-42B0-92F2-FF712E4222CE= scroll=3Dyes SIGCOLOR=3D"0" X-ADF=3D"0" X-AD=3D"C3C52140-4147-11D4-BA3D-= 0050DAC68030" X-APF=3D"1" X-AP=3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X= -ANF=3D"0" X-AN=3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X-ASHF=3D"1" X-A= SH=3D"ANIM3D00-NONE-0000-0000-000000000000" X-ASNF=3D"0" X-ASN=3D"ANIM3D0= 0-NONE-0000-0000-000000000000" X-FVER=3D"2.0" X-FID=3D"BA285063-5BCE-11D4= -AF8D-0050DAC67E11" X-FIT=3D"Letter" X-FCOL=3D"Elegant Paper" X-FCAT=3D"E= legant Paper" X-FDIS=3D"Rice Fields" ORGYPOS=3D"0"> <TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100= %" border=3D0> <TBODY> <TR> <TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F= AMILY: Arial" vAlign=3Dtop width=3D"100%"> <P><I>-------Original Message-------</I></P> <DIV> </DIV> <DIV id=3Dreceivestrings> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A href=3D"m= ailto:Mar...@as...">Faust, Markus</A></DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> =D4=F1=DF=F4= =E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 2:35:01 =EC=EC</DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A href=3D"mai= lto:dev...@li...">'dev...@li...urceforge= =2Enet'</A></DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> [Dev-C++]= Errors when compiling with STL linked</DIV></DIV> <DIV> </DIV> <DIV>Hi,<BR><BR>When compling the file<BR><BR>#include <iostream><B= R>#include <stdlib.h><BR>#include <list><BR><BR>using namespa= ce std;<BR><BR>void f()<BR>{<BR>list<double> l;<BR>for (int i=3D3D0= ; i<1000000;i++) l.push_back(i);<BR></DIV> <DIV> </DIV> <DIV><STRONG>What is 3D0?</STRONG></DIV> <DIV> </DIV> <DIV> </DIV> <DIV>Ioannis Vranos<BR><BR>* Programming pages: <A href=3D"http://www.noi= cys.freeurl.com/">http://www.noicys.freeurl.com</A><BR>* Alternative URL:= <A href=3D"http://run.to/noicys">http://run.to/noicys</A> </DIV></TD></T= R> <TR> <TD id=3DINCREDIFOOTER width=3D"100%"> <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%"> <TBODY> <TR> <TD width=3D"100%"></TD> <TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD> <TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T= ABLE></TD></TR></TBODY></TABLE></BODY></HTML> --------------Boundary-00=_X69VXFP0000000000000-- --------------Boundary-00=_X69V24L0000000000000 Content-Type: Image/jpeg; name="BackGrnd.jpg" Content-ID: <D255FF1A-03A6-42B0-92F2-FF712E4222CE> Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA EAMCAwYAAAHbAAAC1gAABZX/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIAGUAcwMBIgACEQEDEQH/ xACAAAEBAQEAAAAAAAAAAAAAAAAAAQIGAQEBAAAAAAAAAAAAAAAAAAAAARABAAICAwEAAgMAAAAA AAAAAQARIQIxQRIiQDIQMFARAAICAgIBBAIDAQEAAAAAAAERACExQVFhcYGRobECEsHhMtHxEgEA AAAAAAAAAAAAAAAAAABQ/9oADAMBAAIRAxEAAADtRZYE1ASghQFgUZoCkKSwLmhcllAEqkSkqFAl hUomoAS3IoJqFlDNpFEAQFE1AIVYAWIVKAJRNZpYCwVmmshKACA0CBAUCBYGwf/aAAgBAgABBQD8 B/yP/9oACAEDAAEFAPz6/or8H//aAAgBAQABBQC2+ZeHjbD+saX6hwXeDW1Rg4xLLTa+m7ZiIEsI 1MTiHP1dYpvFADiFM1/X6nq9byuwdPPz5oFofWlEMQ9ULKrWq2ppG9Y2J6INQma9lVTRdlUKgHzX XSEECw1SYu5WsGoJPkisZYpx31GvXZQ/JM3VwShzVTsp1EZbBI8LcaUSih86+s2Zl4Wp6+lAZnVs Dkjdku5m+lJTdXDG2SHM9M2wKX1YxsaZTTwmoVrYnqsMrM652yjs01K0mtbGAz6Y5dpfqNz06qpq 5QNjiIjiZtbhtceNuf0jyeqGgu6rXMvI4omPWbPMYzEfMI+axHnFvOP4/9oACAECAgY/AGP/2gAI AQMCBj8AY//aAAgBAQEGPwB72Yucb1BfIhFEaeZ+xRXFQELN+HEUQdjU0Xn4g9gRCQcpw1yajGYs P/kFvUzvjUBWrIMFHI2OJQNEAjiEEFdTmfG/MTHq5RFOnpTV3kzCBx7x4YOD1AV5uYJvnqMA0hep jfwpYCwC4Bx3q55zeZRBCw9TkoIuHw78RdczSNH2mgqcLpRC+RASAkA3B13mcYd5mR84c/yOx4lW tRAZ6mGDhiP9WgXVyhWA+xDgMOWGMsTg/wBTz8SjjXrP8hHIlX1MZ6mDzgc/cIV/iyN1GBR0MQMK jnEzvvMz8mUkErKlfqU63iV+IKNH7mNZBLFQEpEDeDOV32IVn8WR4caoywqI2p695mbZzNUQIcKf k0bo+0NpCqn7CiQiNGXkdQen1DpjGeZ7WNw3pK+I93maCPc16+Zkf6XxMCsFwAkaiIB57vc/IAhZ /HqZBBbB0ZokAEOGxsYqBgPp8agQBu4VSMJdqx6SwDsGBrTmAR93uZGX6KePowEADAIjoX8gw459 CICaW/MLGvodQfkDW71zBxRHtB3j3jC4PMIYoAgKNfPMCQNN7jCzvlzXPopzhQvNZY3CRya9ZrEF fRE0iCB5mscZuVYfKmAi94uE3Q8qfytQ7xD0svmFcmaxNPI8iMjh3pmF2HbzqeUi+YkiD/MrOl5L mbwPuWVfmXpv3hDH8qAjPpiZHXkRnSd6ZhB53mejzKV6US0K9TCCLyCeIhtETX5MsHBGJkD/ANiF kMCE2qGoCdZ8Q8AMGpYFqEhdhRIYH3CF3d1M/Mexma+4CwdQ2Ddcx0exAlmj04QUQd8QWLB/iB5G xmEg5TENVZqPYzFV8eHAy9T/AEc8a4n3Ov6g/VwvE6lpQ4VNysXzhS8esOO8w/rlF/rypjV3B5H1 Knr8T//Z --------------Boundary-00=_X69V24L0000000000000-- --__--__-- Message: 3 From: "iad929" <ia...@jo...> To: "'DevC++ help'" <dev...@li...> Subject: Re: [Dev-C++] need some explanation Date: Tue, 4 Feb 2003 04:24:03 +0300 > #include <iostream> > #include <stdlib> > #include <cstdlib> Mohammed --__--__-- Message: 4 Date: Tue, 25 Feb 2003 14:46:32 +0100 (CET) From: Per Westermark <pw...@ia...> To: Ioannis Vranos <no...@ho...> cc: dev...@li... Subject: Re: [Dev-C++] Errors when compiling with STL linked A game developer :-) /Per W On Tue, 25 Feb 2003, Ioannis Vranos wrote: > -------Original Message------- > > From: Faust, Markus > Date: =D4=F1=DF=F4=E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 2:35:01 = =EC=EC > To: 'dev...@li...' > Subject: [Dev-C++] Errors when compiling with STL linked > > Hi, > > When compling the file > > #include <iostream> > #include <stdlib.h> > #include <list> > > using namespace std; > > void f() > { > list<double> l; > for (int i=3D3D0; i<1000000;i++) l.push_back(i); > > > What is 3D0? > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys --__--__-- Message: 5 From: "Vlada Djurovic" <dj...@im...> To: "Teodorescu Cristian" <te...@xt...>, "Dev-C++ Mailing List" <dev...@li...> Subject: Re: [Dev-C++] need some explanation Date: Tue, 25 Feb 2003 14:57:38 +0100 I'd like to thank everybody for help. You're great, thanks! ----- Original Message ----- From: "Teodorescu Cristian" <te...@xt...> To: "Dev-C++ Mailing List" <dev...@li...> Sent: Wednesday, September 25, 2002 10:07 AM Subject: Re: [Dev-C++] need some explanation > Vlada Djurovic wrote: > > >Hi, everybody > >I hope someone can explain this to me. When I write this: > > > >#include <iostream> > >#include <stdlib> > > > >using namespace std; > > > >I get error like "stdlib: No such file or directory". > >When I write like this: > >#include <iostream> > >#include <stdlib.h> > > > >using namespace std; > > > >everything is fine. I thought that with "using namespace" you don't have > >specify file extension. Why does the compiler complain only about stdlib > >without .h? Can somebody please explain this? > > > > > In c++ you have libraries like <iostream> old name was <iostream.h> and > in C++ 98 standard was renamed. > on the other hand stdlib.h is not a c++ standard library is a C standard > so his name remains the same because C standard has .h names > In other words : > iostream is a C++ stadard library > stdlib.h is a C standard library > becarefull at string > <string> contains class string > <string.h> contains C like functions for manipulating strings > My sugestions: > 1:Use only one set of libreries like either from C++ or from C never > mixed up especialy when you use pointers. > 2:Take a look at a C++ standard and the diff betwen C and C++ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > --__--__-- Message: 6 From: "Daniel Glenfield" <sp...@ho...> To: pw...@ia..., no...@ho... Cc: dev...@li... Subject: Re: [Dev-C++] Errors when compiling with STL linked Date: Tue, 25 Feb 2003 14:17:04 +0000 lol so I'm not the only one who thought that then! Ha Ha! >From: Per Westermark <pw...@ia...> >To: Ioannis Vranos <no...@ho...> >CC: dev...@li... >Subject: Re: [Dev-C++] Errors when compiling with STL linked >Date: Tue, 25 Feb 2003 14:46:32 +0100 (CET) > >A game developer :-) > >/Per W > >On Tue, 25 Feb 2003, Ioannis Vranos wrote: > > > -------Original Message------- > > > > From: Faust, Markus > > Date: On?oc, 25 OaanioUneio 2003 2:35:01 ii > > To: 'dev...@li...' > > Subject: [Dev-C++] Errors when compiling with STL linked > > > > Hi, > > > > When compling the file > > > > #include <iostream> > > #include <stdlib.h> > > #include <list> > > > > using namespace std; > > > > void f() > > { > > list<double> l; > > for (int i=3D0; i<1000000;i++) l.push_back(i); > > > > > > What is 3D0? > > > > > > Ioannis Vranos > > > > * Programming pages: http://www.noicys.freeurl.com > > * Alternative URL: http://run.to/noicys > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Worried what your kids see online? Protect them better with MSN 8 http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059 --__--__-- Message: 7 Date: Tue, 25 Feb 2003 17:10:26 +0200 (GTB Standard Time) From: "Ioannis Vranos" <no...@ho...> To: "Dev-C++ Mailing List" <dev...@li...> Subject: Re: [Dev-C++] need some explanation --------------Boundary-00=_E5EVBHK0000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_E5EV6RO0000000000000" --------------Boundary-00=_E5EV6RO0000000000000 Content-Type: Text/Plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Actually that information is wrong. stdlib.h and cstdlib are part of the = C++ standard (the C subset of C++ but it doesn't matter). And do not confuse = C++ with C, they are different languages. Example:=0D =0D C99 code but not valid C++:=0D =0D #include <stddef.h>=0D #include <stdio.h>=0D =0D =0D int main()=0D {=0D size_t s=3D7;=0D =0D printf("%sz\n", s);=0D =0D }=0D =0D =0D Even between C90 vs C++98 there are differences. For example:=0D =0D int main()=0D {=0D char s[10]=3D"0123456789";=0D =0D return 0; =0D }=0D =0D is valid C90 but not C++.=0D =0D =0D -------Original Message-------=0D =0D From: Vlada Djurovic=0D Date: =D4=F1=DF=F4=E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 4:00:37 = =EC=EC=0D To: Teodorescu Cristian; Dev-C++ Mailing List=0D Subject: Re: [Dev-C++] need some explanation=0D =0D I'd like to thank everybody for help. You're great, thanks!=0D =0D ----- Original Message ----- =0D From: "Teodorescu Cristian" <te...@xt...>=0D To: "Dev-C++ Mailing List" <dev...@li...>=0D Sent: Wednesday, September 25, 2002 10:07 AM=0D Subject: Re: [Dev-C++] need some explanation=0D =0D =0D > Vlada Djurovic wrote:=0D > =0D > >Hi, everybody=0D > >I hope someone can explain this to me. When I write this:=0D > >=0D > >#include <iostream>=0D > >#include <stdlib>=0D > >=0D > >using namespace std;=0D > >=0D > >I get error like "stdlib: No such file or directory".=0D > >When I write like this:=0D > >#include <iostream>=0D > >#include <stdlib.h>=0D > >=0D > >using namespace std;=0D > >=0D > >everything is fine. I thought that with "using namespace" you don't ha= ve=0D > >specify file extension. Why does the compiler complain only about stdl= ib=0D > >without .h? Can somebody please explain this?=0D > > =0D > >=0D > In c++ you have libraries like <iostream> old name was <iostream.h> and= =0D > in C++ 98 standard was renamed.=0D > on the other hand stdlib.h is not a c++ standard library is a C standar= d =0D > so his name remains the same because C standard has .h names=0D > In other words :=0D > iostream is a C++ stadard library=0D > stdlib.h is a C standard library=0D > becarefull at string=0D > <string> contains class string=0D > <string.h> contains C like functions for manipulating strings=0D > My sugestions:=0D > 1:Use only one set of libreries like either from C++ or from C never =0D > mixed up especialy when you use pointers.=0D > 2:Take a look at a C++ standard and the diff betwen C and C++=0D > =0D > =0D > =0D > =0D > -------------------------------------------------------=0D > This sf.net email is sponsored by:ThinkGeek=0D > Welcome to geek heaven.=0D > http://thinkgeek.com/sf=0D > _______________________________________________=0D > Dev-cpp-users mailing list=0D > Dev...@li...=0D > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=0D > =0D =0D =0D =0D -------------------------------------------------------=0D This sf.net email is sponsored by:ThinkGeek=0D Welcome to geek heaven.=0D http://thinkgeek.com/sf=0D _______________________________________________=0D Dev-cpp-users mailing list=0D Dev...@li...=0D TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 --------------Boundary-00=_E5EV6RO0000000000000 Content-Type: Text/HTML; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-= 7"> <META content=3D"IncrediMail 1.0" name=3DGENERATOR> <!--IncrdiXMLRemarkStart> <IncrdiX-Info> <X-FID>BA285063-5BCE-11D4-AF8D-0050DAC67E11</X-FID> <X-FVER></X-FVER> <X-FIT></X-FIT> <X-FCOL></X-FCOL> <X-FCAT></X-FCAT> <X-FDIS></X-FDIS> <X-BG>3001FC01-738C-4B1E-B893-36764A1C0EA8</X-BG> <X-BGT>repeat</X-BGT> <X-BGC>#eff3f7</X-BGC> <X-BGPX>left</X-BGPX> <X-BGPY>0px</X-BGPY> <X-ASN>ANIM3D00-NONE-0000-0000-000000000000</X-ASN> <X-ASNF>0</X-ASNF> <X-ASH>ANIM3D00-NONE-0000-0000-000000000000</X-ASH> <X-ASHF>1</X-ASHF> <X-AN>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AN> <X-ANF>0</X-ANF> <X-AP>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AP> <X-APF>1</X-APF> <X-AD>C3C52140-4147-11D4-BA3D-0050DAC68030</X-AD> <X-ADF>0</X-ADF> <X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO> <X-CNT>;</X-CNT> </IncrdiX-Info> <IncrdiXMLRemarkEnd--> </HEAD> <BODY style=3D"BACKGROUND-POSITION: left 0px; FONT-SIZE: 12pt; MARGIN: 0p= x 10px 10px; BACKGROUND-REPEAT: repeat; FONT-FAMILY: Arial" text=3D#00005= b bgColor=3D#eff3f7 background=3Dcid:3001FC01-738C-4B1E-B893-36764A1C0EA8= scroll=3Dyes SIGCOLOR=3D"0" X-ADF=3D"0" X-AD=3D"C3C52140-4147-11D4-BA3D-= 0050DAC68030" X-APF=3D"1" X-AP=3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X= -ANF=3D"0" X-AN=3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X-ASHF=3D"1" X-A= SH=3D"ANIM3D00-NONE-0000-0000-000000000000" X-ASNF=3D"0" X-ASN=3D"ANIM3D0= 0-NONE-0000-0000-000000000000" X-FVER=3D"2.0" X-FID=3D"BA285063-5BCE-11D4= -AF8D-0050DAC67E11" X-FIT=3D"Letter" X-FCOL=3D"Elegant Paper" X-FCAT=3D"E= legant Paper" X-FDIS=3D"Rice Fields" ORGYPOS=3D"0"> <TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100= %" border=3D0> <TBODY> <TR> <TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F= AMILY: Arial" vAlign=3Dtop width=3D"100%"> <DIV>Actually that information is wrong. stdlib.h and cstdlib are part of= the C++ standard (the C subset of C++ but it doesn't matter). And d= o not confuse C++ with C, they are different languages. Example:</DIV> <DIV> </DIV> <DIV>C99 code but not valid C++:</DIV> <DIV> </DIV> <DIV>#include <stddef.h><BR>#include <stdio.h></DIV> <DIV> </DIV> <DIV><BR>int main()<BR>{<BR> size_t s=3D7;<BR> <BR> printf= ("%sz\n", s);<BR> <BR>}</DIV> <DIV> </DIV> <DIV> </DIV> <DIV>Even between C90 vs C++98 there are differences. For example:</= DIV> <DIV> </DIV> <DIV>int main()<BR>{<BR> char s[10]=3D"0123456789";<BR> <BR>&= nbsp; return 0; <BR>}</DIV> <DIV> </DIV> <DIV>is valid C90 but not C++.</DIV> <DIV> </DIV> <DIV> </DIV> <DIV id=3DIncrediOriginalMessage><I>-------Original Message-------</I></D= IV> <DIV> </DIV> <DIV id=3Dreceivestrings> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A href=3D"m= ailto:dj...@im...">Vlada Djurovic</A></DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> =D4=F1=DF=F4= =E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 4:00:37 =EC=EC</DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A href=3D"mai= lto:te...@xt...">Teodorescu Cristian</A>; <A href=3D"mailto:dev-cpp-users@= lists.sourceforge.net">Dev-C++ Mailing List</A></DIV> <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> Re: [Dev-= C++] need some explanation</DIV></DIV> <DIV> </DIV>I'd like to thank everybody for help. You're great, than= ks!<BR><BR>----- Original Message ----- <BR>From: "Teodorescu Cristian" &= lt;<A href=3D"mailto:te...@xt...">te...@xt...</A>><BR>To: "Dev-C++ Maili= ng List" <<A href=3D"mailto:dev...@li...">dev-c= pp-...@li...</A>><BR>Sent: Wednesday, September 25, = 2002 10:07 AM<BR>Subject: Re: [Dev-C++] need some explanation<BR><BR><BR>= > Vlada Djurovic wrote:<BR>> <BR>> >Hi, everybody<BR>> >= ;I hope someone can explain this to me. When I write this:<BR>> ><B= R>> >#include <iostream><BR>> >#include <stdlib><= BR>> ><BR>> >using namespace std;<BR>> ><BR>> >I = get error like "stdlib: No such file or directory".<BR>> >When I wr= ite like this:<BR>> >#include <iostream><BR>> >#include= <stdlib.h><BR>> ><BR>> >using namespace std;<BR>> &= gt;<BR>> >everything is fine. I thought that with "using namespace"= you don't have<BR>> >specify file extension. Why does the compiler= complain only about stdlib<BR>> >without .h? Can somebody please e= xplain this?<BR>> > <BR>> ><BR>> In c++ you have libraries= like <iostream> old name was <iostream.h> and <BR>> in C+= + 98 standard was renamed.<BR>> on the other hand stdlib.h is not a c+= + standard library is a C standard <BR>> so his name remains the same = because C standard has .h names<BR>> In other words :<BR>> iostream= is a C++ stadard library<BR>> stdlib.h is a C standard library<BR>>= ; becarefull at string<BR>> <string> contains class string<BR>&g= t; <string.h> contains C like functions for manipulating strings<BR= >> My sugestions:<BR>> 1:Use only one set of libreries like either = from C++ or from C never <BR>> mixed up especialy when you use pointer= s.<BR>> 2:Take a look at a C++ standard and the diff betwen C and C++<= BR>> <BR>> <BR>> <BR>> <BR>> -----------------------------= --------------------------<BR>> This sf.net email is sponsored by:Thin= kGeek<BR>> Welcome to geek heaven.<BR>> <A href=3D"http://thinkgeek= =2Ecom/sf">http://thinkgeek.com/sf</A><BR>> __________________________= _____________________<BR>> Dev-cpp-users mailing list<BR>> <A href=3D= "mailto:Dev...@li...">Dev...@li...urcefo= rge.net</A><BR>> TO UNSUBSCRIBE: <A href=3D"http://www.noicys.cjb.net/= devcpp/ub.htm">http://www.noicys.cjb.net/devcpp/ub.htm</A><BR>> https:= //lists.sourceforge.net/lists/listinfo/dev-cpp-users<BR>> <BR><BR><BR>= <BR>-------------------------------------------------------<BR>This sf.ne= t email is sponsored by:ThinkGeek<BR>Welcome to geek heaven.<BR><A href=3D= "http://thinkgeek.com/sf">http://thinkgeek.com/sf</A><BR>________________= _______________________________<BR>Dev-cpp-users mailing list<BR><A href=3D= "mailto:Dev...@li...">Dev...@li...urcefo= rge.net</A><BR>TO UNSUBSCRIBE: <A href=3D"http://www.noicys.cjb.net/devcp= p/ub.htm">http://www.noicys.cjb.net/devcpp/ub.htm</A><BR>https://lists.so= urceforge.net/lists/listinfo/dev-cpp-users </TD></TR> <TR> <TD id=3DINCREDIFOOTER width=3D"100%"> <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%"> <TBODY> <TR> <TD width=3D"100%"></TD> <TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD> <TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T= ABLE></TD></TR></TBODY></TABLE></BODY></HTML> --------------Boundary-00=_E5EV6RO0000000000000-- --------------Boundary-00=_E5EVBHK0000000000000 Content-Type: Image/jpeg; name="BackGrnd.jpg" Content-ID: <3001FC01-738C-4B1E-B893-36764A1C0EA8> Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA EAMCAwYAAAHbAAAC1gAABZX/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIAGUAcwMBIgACEQEDEQH/ xACAAAEBAQEAAAAAAAAAAAAAAAAAAQIGAQEBAAAAAAAAAAAAAAAAAAAAARABAAICAwEAAgMAAAAA AAAAAQARIQIxQRIiQDIQMFARAAICAgIBBAIDAQEAAAAAAAERACExQVFhcYGRobECEsHhMtHxEgEA AAAAAAAAAAAAAAAAAABQ/9oADAMBAAIRAxEAAADtRZYE1ASghQFgUZoCkKSwLmhcllAEqkSkqFAl hUomoAS3IoJqFlDNpFEAQFE1AIVYAWIVKAJRNZpYCwVmmshKACA0CBAUCBYGwf/aAAgBAgABBQD8 B/yP/9oACAEDAAEFAPz6/or8H//aAAgBAQABBQC2+ZeHjbD+saX6hwXeDW1Rg4xLLTa+m7ZiIEsI 1MTiHP1dYpvFADiFM1/X6nq9byuwdPPz5oFofWlEMQ9ULKrWq2ppG9Y2J6INQma9lVTRdlUKgHzX XSEECw1SYu5WsGoJPkisZYpx31GvXZQ/JM3VwShzVTsp1EZbBI8LcaUSih86+s2Zl4Wp6+lAZnVs Dkjdku5m+lJTdXDG2SHM9M2wKX1YxsaZTTwmoVrYnqsMrM652yjs01K0mtbGAz6Y5dpfqNz06qpq 5QNjiIjiZtbhtceNuf0jyeqGgu6rXMvI4omPWbPMYzEfMI+axHnFvOP4/9oACAECAgY/AGP/2gAI AQMCBj8AY//aAAgBAQEGPwB72Yucb1BfIhFEaeZ+xRXFQELN+HEUQdjU0Xn4g9gRCQcpw1yajGYs P/kFvUzvjUBWrIMFHI2OJQNEAjiEEFdTmfG/MTHq5RFOnpTV3kzCBx7x4YOD1AV5uYJvnqMA0hep jfwpYCwC4Bx3q55zeZRBCw9TkoIuHw78RdczSNH2mgqcLpRC+RASAkA3B13mcYd5mR84c/yOx4lW tRAZ6mGDhiP9WgXVyhWA+xDgMOWGMsTg/wBTz8SjjXrP8hHIlX1MZ6mDzgc/cIV/iyN1GBR0MQMK jnEzvvMz8mUkErKlfqU63iV+IKNH7mNZBLFQEpEDeDOV32IVn8WR4caoywqI2p695mbZzNUQIcKf k0bo+0NpCqn7CiQiNGXkdQen1DpjGeZ7WNw3pK+I93maCPc16+Zkf6XxMCsFwAkaiIB57vc/IAhZ /HqZBBbB0ZokAEOGxsYqBgPp8agQBu4VSMJdqx6SwDsGBrTmAR93uZGX6KePowEADAIjoX8gw459 CICaW/MLGvodQfkDW71zBxRHtB3j3jC4PMIYoAgKNfPMCQNN7jCzvlzXPopzhQvNZY3CRya9ZrEF fRE0iCB5mscZuVYfKmAi94uE3Q8qfytQ7xD0svmFcmaxNPI8iMjh3pmF2HbzqeUi+YkiD/MrOl5L mbwPuWVfmXpv3hDH8qAjPpiZHXkRnSd6ZhB53mejzKV6US0K9TCCLyCeIhtETX5MsHBGJkD/ANiF kMCE2qGoCdZ8Q8AMGpYFqEhdhRIYH3CF3d1M/Mexma+4CwdQ2Ddcx0exAlmj04QUQd8QWLB/iB5G xmEg5TENVZqPYzFV8eHAy9T/AEc8a4n3Ov6g/VwvE6lpQ4VNysXzhS8esOO8w/rlF/rypjV3B5H1 Knr8T//Z --------------Boundary-00=_E5EVBHK0000000000000-- --__--__-- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users End of Dev-cpp-users Digest The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer |
From: Ioannis V. <no...@ho...> - 2003-02-25 22:15:28
|
=0D =0D -------Original Message-------=0D =0D From: Pa...@ad...=0D Date: =D4=F1=DF=F4=E7, 25 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 9:18:50 = =EC=EC=0D To: dev...@li...=0D Subject: [Dev-C++] help=0D =0D =0D help in unsubscribing please..=0D =0D =0D =3D=3D> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
From: Chin He Q. <he...@si...> - 2003-10-01 02:09:06
|
=20 I have a problem using Dev-C++ making the following programme: a 4rows = by 5 columns of seats, it must display=20 A1 A2 A3 B1 B2 B3 and so on, when the seats are booked, it will display=20 =20 A1 X A3 X B2 B3 if possible send me the programme for making this. Thank = You! |
From: P.D. v. Z. <pa...@my...> - 2003-10-01 06:12:50
|
Sure, we all love doing other people's homework. Think about this (very simple!) problem just for a second or two and you can figure it out for yourself. It probably takes you more time to write this mail and wait for someone who actually sends you such a program than it does for you to write it yourself. ________________________________ From: dev...@li... [mailto:dev...@li...] On Behalf Of Chin He Quan Sent: Wednesday, October 01, 2003 4:34 AM To: dev...@li... Subject: [Dev-C++] Re:help I have a problem using Dev-C++ making the following programme: a 4rows by 5 columns of seats, it must display A1 A2 A3 B1 B2 B3 and so on, when the seats are booked, it will display A1 X A3 X B2 B3 if possible send me the programme for making this. Thank You! |
From: alf <al...@bl...> - 2004-02-23 21:06:58
|
my dos console stays on by putting cin.get() before return 0. the windows consoles just blink on then off with or without cin.get(). What should I do? many thanks alf. |
From: <onw...@ya...> - 2004-02-24 12:49:28
|
hi , can one plz tell me how to use graphics with dev c++. thnks ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |
From: Per W. <pw...@ia...> - 2004-02-24 14:39:39
|
Your last question, a month ago, was about programming graphics in MS-DOS. You have to tell us more what you aim to do or we don't have any real chance of giving reasonable advice. /Per W On Tue, 24 Feb 2004, THE OMEGA7 wrote: > hi , > > can one plz tell me how to use graphics with dev c++. > > thnks > > > > > > ___________________________________________________________ > Yahoo! Messenger - Communicate instantly..."Ping" > your friends today! Download Messenger Now > http://uk.messenger.yahoo.com/download/index.html > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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 > |