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 |