dev-cpp-users Mailing List for Dev-C++ (Page 430)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Per W. <pw...@ia...> - 2003-03-01 15:54:28
|
For just about all OS, the memory allocated by malloc and new will be released by the OS uppon program termination, i.e. you don't need to release it. However, there are a number of reasons for releasing it anyway: - A debug build may then check for unreleased memory, and can inform you about any memory leaks. A single variable living through the whole program isn't considered a leak. However a buffer that the application should allocate/reallocate regularly during normal operation, and that isn't deallocated is a leak, i.e. while the same instance of the program continues running, the needed memory continues to grow. - When programming in C++, the destructor run when you release your class objects might have other side effects. It might change current mouse cursor, perform flush on file system, remove temporary files, close down a non-standard graphics mode etc. - If all allocated memory gets released when not needed anymore, it is easier to look at the code and determine the useful lifespan of the different variables. There isn't any use to add code to keep a structure up to date, if nobody will ever check the values of the structure anymore. - To support code reuse. What might be a standalone program now, might very well become a sub-module in a larger project tomorrow, and then you don't want to have to pick the code to pieces to get it working. I have probably missed a couple of really important reasons but yes, i'd suggest that you try and release all malloc/calloc/new memory before ending the program, or preferably as soon as you know that you will not need the information anymore. /Per W On Sat, 1 Mar 2003, Robson Bernard wrote: > Hi coders, > > I have a question that does not want to shut up! When i code a program, do i > have to delete all variables before exiting the main function or does the > operating system cares of free all the memory allocated? If i do not delete > the variables before main function and use the program several times, may it > cause the system memory to be unavailble? > > Any input welcome! > > Thanks! > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Robson B. <rob...@su...> - 2003-03-01 15:28:00
|
Thanks for input, people! |
|
From: Daniel G. <sp...@ho...> - 2003-03-01 15:19:58
|
For C++ you must delete any objects you create with the new operator.
Variables created normally will be destroyed when they go out of scope.
So
int main(int argc, char** argv)
{
int SomeInt = 0;
return 0;
}
// SomeInt has been destroyed.
or try
int main(int argc, char** argv)
{
{
// The { doesn;t do anything except limit
// the scope of everything within.
int SomeInt = 0;
} // someInt now destroyed.
return 0;
}
but if you do
MyClass* Ptr; // Ptr can point to a MyClass object
Ptr = new Myclass;
//...
delete Ptr; // Delete the object and free the memory.
This is because with 'new' you allocate memory at run time, not at compile
time.
>From: "Robson Bernard" <rob...@su...>
>To: "C++ Mail List" <dev...@li...>
>Subject: [Dev-C++] Memory
>Date: Sat, 1 Mar 2003 11:47:26 -0300
>
>Hi coders,
>
>I have a question that does not want to shut up! When i code a program, do
>i
>have to delete all variables before exiting the main function or does the
>operating system cares of free all the memory allocated? If i do not delete
>the variables before main function and use the program several times, may
>it
>cause the system memory to be unavailble?
>
>Any input welcome!
>
>Thanks!
>
>
>
>-------------------------------------------------------
>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
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://messenger.msn.co.uk
|
|
From: <rol...@mi...> - 2003-03-01 15:12:46
|
- variables allocated in stack must not (should not ) be deleted
- variables allocated with new och malloc must be free'd
void main( void )
{
int a ; // allocated on stack - no delete!
int* b = new int ; // allocated with new - do delete!
a = 10 ;
*b = 10 ;
...
...
delete b ; // free b!
}
----- Original Message -----
From: "Robson Bernard" <rob...@su...>
To: "C++ Mail List" <dev...@li...>
Sent: Saturday, March 01, 2003 3:47 PM
Subject: [Dev-C++] Memory
> Hi coders,
>
> I have a question that does not want to shut up! When i code a program, do
i
> have to delete all variables before exiting the main function or does the
> operating system cares of free all the memory allocated? If i do not
delete
> the variables before main function and use the program several times, may
it
> cause the system memory to be unavailble?
>
> Any input welcome!
>
> Thanks!
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Robson B. <rob...@su...> - 2003-03-01 14:46:38
|
Hi coders, I have a question that does not want to shut up! When i code a program, do i have to delete all variables before exiting the main function or does the operating system cares of free all the memory allocated? If i do not delete the variables before main function and use the program several times, may it cause the system memory to be unavailble? Any input welcome! Thanks! |
|
From: Ioannis V. <no...@ho...> - 2003-03-01 12:54:58
|
Which is not required/valid C++98 header file.=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D -------Original Message-------=0D =0D From: Carlos Garc=EDa del Monte=0D Date: =D3=DC=E2=E2=E1=F4=EF, 1 =CC=DC=F1=F4=E9=EF=F2 2003 2:41:51 =EC=EC=0D To: dev-cpp-users-list=0D Subject: Re: [Dev-C++] keywords=0D =0D Just as mingw, which has that file, too. |
|
From: <cg...@wo...> - 2003-03-01 12:39:07
|
Just as mingw, which has that file, too.
Jaap de Wolff wrote:
>This is not really new, you could use it since VC4.2 (Microsoft ~1995)
>The only thing was you had to include <iso646.h>:
>
>/* iso646.h standard header */
>#ifndef _ISO646
>#define _ISO646
>#define and &&
>#define and_eq &=
>#define bitand &
>#define bitor |
>#define compl ~
>#define not !
>#define not_eq !=
>#define or ||
>#define or_eq |=
>#define xor ^
>#define xor_eq ^=
>#endif /* _ISO646 */
>
>/*
> * Copyright (c) 1994 by P.J. Plauger. ALL RIGHTS RESERVED.
> * Consult your license regarding permissions and restrictions.
> */
>
>The reason for this was that at the moment of talking about a new standard,
>there were keyboards with ugly ways to access the ^~| and & key.
>(And still at some keyboards you have to look a second time to find the
>right key)
>
>Jaap
>-----Original Message-----
>From: Ioannis Vranos [mailto:no...@ho...]
>Sent: Friday, February 28, 2003 11:52 AM
>To: Dev-C++ Mailing List
>Subject: [Dev-C++] keywords
>
>
>By the way guys and girls, did you know that in C++98 you can do:
>
>
>#include <iostream>
>
>int main()
>{
> int x=1, y=2;
>
> if(x>y or x*y==2)
> std::cout<<"Beep beep\n";
>
>
> y=y bitand x;
>
> x and_eq y;
>
>}
>
>
>
>That is to use keywords instead of || etc symbols?
>
>
>
>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
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Ioannis V. <no...@ho...> - 2003-02-28 23:27:39
|
-------Original Message-------=0D =0D From: Roland Str=E5lberg=0D Date: =D0=E1=F1=E1=F3=EA=E5=F5=DE, 28 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2= 003 5:44:18 =EC=EC=0D To: dev...@li...=0D Subject: [Dev-C++] W32+DX9 + VS.NET to DevCPP possible?=0D =0D Hi=0D =0D I currently developing a small 3dengine=0D for win32 + directx9 + boost STL extensions=0D and is currently using Microsoft C++ .NET=0D =0D I'm would be very pleased to port the project to=0D devCpp++. =0D =0D Before event starting I'll send you with better =0D experience the simple question - Is this a good=0D idea and is it possible possible.=0D =0D An alpha 1.0 sourcecode for C++.NET can be =0D downloaded from http://stralberg.kalix.net=0D =0D It would realy be great to use devCpp for this=0D project.=0D =0D Thank's=0D Roland Str=E5lberg=0D ro...@st...=0D =0D =0D =3D=3D> If you are using the .NET API, you can't so far. Dev-C++ supports= only Win32 API so far. If you are using Win32 API, why not?=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: Ioannis V. <no...@ho...> - 2003-02-28 23:24:25
|
-------Original Message-------=0D =0D From: Jaap de Wolff=0D Date: =D0=E1=F1=E1=F3=EA=E5=F5=DE, 28 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2= 003 4:32:26 =EC=EC=0D To: Dev-C++ Mailing List=0D Subject: RE: [Dev-C++] keywords=0D =0D This is not really new, you could use it since VC4.2 (Microsoft ~1995)=0D The only thing was you had to include <iso646.h>:=0D =0D =3D=3D> I didn't say it's new. :)=0D =0D =0D =0D /* iso646.h standard header */=0D #ifndef _ISO646=0D #define _ISO646=0D #define and &&=0D #define and_eq &=3D=0D #define bitand &=0D #define bitor |=0D #define compl ~=0D #define not !=0D #define not_eq !=3D=0D #define or ||=0D #define or_eq |=3D=0D #define xor ^=0D #define xor_eq ^=3D=0D #endif /* _ISO646 */=0D =0D /*=0D * Copyright (c) 1994 by P.J. Plauger. ALL RIGHTS RESERVED. =0D * Consult your license regarding permissions and restrictions.=0D */=0D =0D =0D =3D=3D> That's cool. That means you have lived with the language in roman= tic times.=0D =0D =0D The reason for this was that at the moment of talking about a new standar= d, =0D there were keyboards with ugly ways to access the ^~| and & key.=0D (And still at some keyboards you have to look a second time to find the=0D right key)=0D =0D =3D=3D> Well, i do not know about its exact history but i have the impres= sion that these digraphs and trigraphs were both created to help people with keyboard problems (missing these characters for example). My guess for th= e keywords is that they are intended just to be nice. Unfortunately althoug= h part of the standard, MINGW is the only compiler i have seen that accepts these keywords so far but naturally i am expecting to see them recognised soon by other compilers, as with other C++98 things missing in the past a= nd now are available. Does anyone remember the times we were here with GCC 2= =2E95 x discussing what nice things the standard defines and the compiler was missing? :)=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: Charles K. <ch...@ke...> - 2003-02-28 17:13:25
|
Does anyone know of a good macro that will allow one to send messages to
output during compile?
What I would like is the equivalent of MSVC's #pragma note() function.
I was considering gcc's #warning " " function.
does anyone have a macro, like NOTE(" ") that will output a message
during compile for both msvc and gcc ?
|
|
From: <rol...@mi...> - 2003-02-28 15:41:06
|
Hi I currently developing a small 3dengine for win32 + directx9 + boost STL extensions and is currently using Microsoft C++ .NET I'm would be very pleased to port the project to devCpp++.=20 Before event starting I'll send you with better=20 experience the simple question - Is this a good idea and is it possible possible. An alpha 1.0 sourcecode for C++.NET can be=20 downloaded from http://stralberg.kalix.net It would realy be great to use devCpp for this project. Thank's Roland Str=E5lberg ro...@st... |
|
From: Jaap de W. <wo...@Ne...> - 2003-02-28 14:30:06
|
This is not really new, you could use it since VC4.2 (Microsoft ~1995)
The only thing was you had to include <iso646.h>:
/* iso646.h standard header */
#ifndef _ISO646
#define _ISO646
#define and &&
#define and_eq &=
#define bitand &
#define bitor |
#define compl ~
#define not !
#define not_eq !=
#define or ||
#define or_eq |=
#define xor ^
#define xor_eq ^=
#endif /* _ISO646 */
/*
* Copyright (c) 1994 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
*/
The reason for this was that at the moment of talking about a new standard,
there were keyboards with ugly ways to access the ^~| and & key.
(And still at some keyboards you have to look a second time to find the
right key)
Jaap
-----Original Message-----
From: Ioannis Vranos [mailto:no...@ho...]
Sent: Friday, February 28, 2003 11:52 AM
To: Dev-C++ Mailing List
Subject: [Dev-C++] keywords
By the way guys and girls, did you know that in C++98 you can do:
#include <iostream>
int main()
{
int x=1, y=2;
if(x>y or x*y==2)
std::cout<<"Beep beep\n";
y=y bitand x;
x and_eq y;
}
That is to use keywords instead of || etc symbols?
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
|
|
From: Ioannis V. <no...@ho...> - 2003-02-28 12:11:14
|
Well i do not like them for all cases too, but for:=0D =0D =0D if(x<y and y<z)=0D // ...=0D =0D =0D i would think "why not?".=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D =0D =0D -------Original Message-------=0D =0D From: Daniel Glenfield=0D Date: =D0=E1=F1=E1=F3=EA=E5=F5=DE, 28 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2= 003 2:07:21 =EC=EC=0D To: no...@ho...; dev...@li...=0D Subject: Re: [Dev-C++] keywords=0D =0D Really? Looks ugly to me though, I would not recommend it. But that is my personal preference.=0D =0D =0D >From: "Ioannis Vranos" <no...@ho...>=0D >To: "Dev-C++ Mailing List" <dev...@li...>=0D >Subject: [Dev-C++] keywords=0D >Date: Fri, 28 Feb 2003 13:52:28 +0200 (GTB Standard Time)=0D >=0D >By the way guys and girls, did you know that in C++98 you can do:=0D >=0D >=0D >#include <iostream>=0D >=0D >int main()=0D >{=0D > int x=3D1, y=3D2;=0D >=0D > if(x>y or x*y=3D=3D2)=0D > std::cout<<"Beep beep\n";=0D >=0D >=0D > y=3Dy bitand x;=0D >=0D > x and_eq y;=0D >=0D >}=0D >=0D >=0D >=0D >That is to use keywords instead of || etc symbols?=0D >=0D >=0D >=0D >Ioannis Vranos=0D >=0D >* Programming pages: http://www.noicys.freeurl.com=0D >* Alternative URL: http://run.to/noicys=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 |
|
From: Daniel G. <sp...@ho...> - 2003-02-28 12:07:27
|
Really? Looks ugly to me though, I would not recommend it. But that is my
personal preference.
>From: "Ioannis Vranos" <no...@ho...>
>To: "Dev-C++ Mailing List" <dev...@li...>
>Subject: [Dev-C++] keywords
>Date: Fri, 28 Feb 2003 13:52:28 +0200 (GTB Standard Time)
>
>By the way guys and girls, did you know that in C++98 you can do:
>
>
>#include <iostream>
>
>int main()
>{
> int x=1, y=2;
>
> if(x>y or x*y==2)
> std::cout<<"Beep beep\n";
>
>
> y=y bitand x;
>
> x and_eq y;
>
>}
>
>
>
>That is to use keywords instead of || etc symbols?
>
>
>
>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
_________________________________________________________________
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
|
|
From: Ioannis V. <no...@ho...> - 2003-02-28 11:52:41
|
By the way guys and girls, did you know that in C++98 you can do:=0D
=0D
=0D
#include <iostream>=0D
=0D
int main()=0D
{=0D
int x=3D1, y=3D2;=0D
=0D
if(x>y or x*y=3D=3D2)=0D
std::cout<<"Beep beep\n";=0D
=0D
=0D
y=3Dy bitand x;=0D
=0D
x and_eq y;=0D
=0D
}=0D
=0D
=0D
=0D
That is to use keywords instead of || etc symbols?=0D
=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20
|
|
From: Per W. <pw...@ia...> - 2003-02-28 04:57:55
|
See below
/Per W
On Thu, 27 Feb 2003, Charles Kerr wrote:
> Ok, I have this:
>
> int myarray[2][2]={1,2,0,3} ;
{{1,2},{0,3}}
>
> Although that works, with all warnings enabled, it complains about
> incomplete brackets.
>
> What is the proper way to decleare an multiple array with values ?
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Charles K. <ch...@ke...> - 2003-02-28 04:11:08
|
Ok, I have this:
int myarray[2][2]={1,2,0,3} ;
Although that works, with all warnings enabled, it complains about
incomplete brackets.
What is the proper way to decleare an multiple array with values ?
|
|
From: Jack C. <jac...@ya...> - 2003-02-28 04:02:34
|
Ok, I got GtkGlext to work in Dev-C++5, with a helluva effort. Anyone teaches me how to create a package, and I'll make one for GtkGlext. Cheers Jack ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |
|
From: Ioannis V. <no...@ho...> - 2003-02-27 19:26:05
|
-------Original Message-------=0D
=0D
From: gi...@li...=0D
Date: =D0=DD=EC=F0=F4=E7, 27 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 8:10:=
41 =EC=EC=0D
To: Dev-C++ Mailing List=0D
Subject: Re: [Dev-C++] need some explanation=0D
=0D
OK, guys, it's clear now.=0D
=0D
I'm a bit less concerned, because I do not use the notation =0D
char s[3] =3D "abc";=0D
but have learned to use one of the safer ones: =0D
char *s =3D "abc";=0D
or=0D
char s[] =3D "abc"; =0D
=0D
That is the reason why the piece of code seemed correct to me.=0D
=0D
Of course the following is correct both in C89 and C++98, isn't it?=0D
char s[3] =3D { 'a', 'b', 'c' }; =0D
=0D
=0D
=3D=3D> Yes, it is valid C & C++ including the following:=0D
=0D
char s[3]=3D"ab";=0D
=0D
=0D
which is equivalent to the equally valid: char s[3]=3D{'a','b','\0'};=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20 |
|
From: Napoleon A. <n_a...@ya...> - 2003-02-27 18:33:47
|
What version of windows are you using ? Napo --- Robert Zaleski <rza...@ya...> wrote: > Hey All, > I've heard it mentioned a few times on the list that some of us > are having problems with the upgrade program for dev-cpp. I think we > all wanted to get a newer release too, but as of right now we can't. > I > never saw a reply so I was curious, what gives, it's been 2 months > and > that seems a bit long for an open source project. > When I tried vUpdate it said the devcpp.cfg file is missing the > SBIN field. I went ahead and searched my system for the file, but I > couldn't find anything by that name. I played around, uninstalled > and > reinstalled. The initial configuration screen popped up a few times > at > random, not at first run after install, but just randomly. Said it > would drop the configuration file in some folder of my user's > document's and settings (sorry I didn't write down which) but I > didn't > find anything. I want to say I was the administrator or main user > when > I ran that as well. well, I guess that's about it. > So, If there's any work around or anything I can do, let me > know. If I can manually build a cfg file, and try dropping it in a > few > spots until it's found, maybe that'll work. Does anyone have the > updater working on XP? Also is there any way we can manually grab > updates to see if it's working. Finally, thanks allot for the time > you > spend in working on this. I find Dev-cpp very useful and appreciate > your work on it allot. > > Take Care, > Robert Zaleski > > ===== > -------------------------------------------------------- > You are free to do with document whatever you please but > reading it would be a good idea. I am naturally not > responsible for any consequence or action arising out of > the use of information provided in this document. I am > not a very responsible person and you heed me at your own > peril. - 'Linux Installation Strategies' LDP > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > ------------------------------------------------------- > 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 __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ |
|
From: Luigi S. <gi...@li...> - 2003-02-27 18:08:18
|
OK, guys, it's clear now.
I'm a bit less concerned, because I do not use the notation
char s[3] = "abc";
but have learned to use one of the safer ones:
char *s = "abc";
or
char s[] = "abc";
That is the reason why the piece of code seemed correct to me.
Of course the following is correct both in C89 and C++98, isn't it?
char s[3] = { 'a', 'b', 'c' };
--
>> gisan >>
|
|
From: jo m. <non...@ho...> - 2003-02-27 17:45:00
|
I don't know what Lua40 or Lua50 are, but try compiling in C++ mode and put
your C declarations inside "alternate C linkage" like this:
extern "C"
{
#include "Myheader.h"
}
Hope this helps.
>From: Asko Kauppi <ask...@sc...>
>To: dev...@li...
>Subject: [Dev-C++] How to force C linkage?
>Date: Wed, 26 Feb 2003 15:36:28 +0200
>
>
>My problems with C/C++ differences still continue:
>
>- I have two almost identical libraries that I want to compile (with DevCpp
>4.9.7.0). Lua40 (scripting language engine) compiles okay (objdump shows
>proper ANSI C function names), but (a newer version) Lua50 creates C++
>mangled function names in the .o files.
>
>How can I prevent this and what might be causing it?
>
>I've tried "-xc" as compiler option (to force C language) - didn't work.
>I've lower-cap'd all the filenames so that they're not mistaken to be .C .
>The source itself should be plain ANSI C only, not C++.
>
>Can it be some old temporary file lurking somewhere, from the time my files
>were .C ...?
>Any other ideas?
>
>-ak
>
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|
|
From: Daniel K. O. <dan...@ya...> - 2003-02-27 16:37:03
|
Well, I use a template file like this (`Templates\Gtk.template'):
=========================
[Template]
ver=1
Name=Gtk
Icon=Gtk.ico
Description=Create a GUI using Gtk.
Catagory=GUI
[Unit0]
C=Gtk.txt
Cpp=Gtk.txt
CName=main.c
CppName=main.cpp
[Project]
UnitCount=1
Type=0
IsCpp=0
Compiler=-mms-bitfields_@@_-I"<INCLUDE>\glib-2.0"_@@_-I"<INCLUDE>\atk-1.0"_@
@_-I"<INCLUDE>\gtk-2.0"_@@_-I"<INCLUDE>\pango-1.0"_@@_-I"<LIB>\glib-2.0\incl
ude"_@@_-I"<LIB>\gtk-2.0\include"
Linker=-lgtk-win32-2.0_@@_-lgdk-win32-2.0_@@_-latk-1.0_@@_-lgdk_pixbuf-2.0_@
@_-lpangowin32-1.0_@@_-lgdi32_@@_-lpango-1.0_@@_-lgobject-2.0_@@_-lgmodule-2
.0_@@_-lglib-2.0_@@_-lintl_@@_-liconv
Name=GTK Project
ProjectIcon=Gtk.ico
=========================
The linker options I just copy/pasted from the `pkg-config --libs gtk+-2.0'.
Also a GTK icon (Gtk.ico) and a sample code (Gtk.txt):
=========================
#include <gtk/gtk.h>
GtkWidget *win;
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(G_OBJECT(win), "destroy",
G_CALLBACK(gtk_main_quit), NULL);
gtk_widget_show(win);
gtk_main();
}
=========================
Daniel K. O.
> -----Mensagem original-----
> De: Jack Chen [mailto:jac...@ya...]
> Enviada em: quinta-feira, 27 de fevereiro de 2003 13:12
> Para: Daniel K. O.
> Assunto: Re: RES: [Dev-C++] Does anyone know how to use GtkGlext in
> Dev-C++?
>
>
> --- "Daniel K. O." <dan...@ya...> wrote: >
> >
> > > I noticed that when building a GTK application, the first line
> > in
> > > the source file is
> > >
> > > #include "GTK/gtk.h"
> > >
> > > . However, the real path is
> > C:\....\Dev-C++5\include\gtk-2.0\gtk\gtk.h.
> > > Apparently, the default GTK include folder is
> > C:\....\Dev-C++5\include
> > > gtk-2.0\. So, I'd like to know how Dev 5 does that, or how I can
> > > manually do it, along with other default paths for lib and other
> > stuff
> > > that are in the package.
> > >
> >
> >
> > Use the MinGW/GCC option, "-I", so you can include other directories,
> > like
> >
> > -I"<INCLUDE>\gtk+-2.0"
> > -I"<INCLUDE>\GtkGLext\"
> >
> > This is useful to put in a dev's template. If it's just one project,
> > you can
> > simply use the Project Options dialog to add other directories.
> >
> >
> >
> > Daniel K. O.
> >
> >
> >
> >
>
>
> Thanks, but how do I then tell that \gtk+-2.0 is the default directory
> for gtk projects? Or will Dev-C++ check by itself to see which
> directory has the needed .h file, and then set that directory as the
> default one? Is it as simple as you made me think...that Dev-C++ will
> search the stuff all by itself? :D
>
> Thanks for your help.
>
> Jack
_______________________________________________________________________
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra.
http://br.busca.yahoo.com/
|
|
From: Ioannis V. <no...@ho...> - 2003-02-27 16:21:31
|
-------Original Message-------=0D =0D From: Adam Malinowski=0D Date: =D0=DD=EC=F0=F4=E7, 27 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 5:48:= 18 =EC=EC=0D To: Ioannis Vranos; dev...@li...=0D Subject: Re: [Dev-C++] Mistake ?=0D =0D >>It is a system extension (variable sized arrays).=0D =0D So whay does VC++ not compile it? Is it too old?=0D =0D =0D =0D =3D=3D> It is a system extension of GCC. As with all system extensions th= ey are not guaranteed to compile to other systems or even different versions of = the same compiler. If you use C++, use vector instead. =0D =0D =3D=3D> If you use C, C99 provides the notion of variable length arrays (= VLAs) so you can use that (but if i recall correctly VLAs are limited to the automatic storage/stack, that is they do not use the free store).=0D =0D =3D=3D> In C++ use the standard library containers instead of allocating = and deallocating memory manually.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: Robert Z. <rza...@ya...> - 2003-02-27 16:15:43
|
Hey All,
I've heard it mentioned a few times on the list that some of us
are having problems with the upgrade program for dev-cpp. I think we
all wanted to get a newer release too, but as of right now we can't. I
never saw a reply so I was curious, what gives, it's been 2 months and
that seems a bit long for an open source project.
When I tried vUpdate it said the devcpp.cfg file is missing the
SBIN field. I went ahead and searched my system for the file, but I
couldn't find anything by that name. I played around, uninstalled and
reinstalled. The initial configuration screen popped up a few times at
random, not at first run after install, but just randomly. Said it
would drop the configuration file in some folder of my user's
document's and settings (sorry I didn't write down which) but I didn't
find anything. I want to say I was the administrator or main user when
I ran that as well. well, I guess that's about it.
So, If there's any work around or anything I can do, let me
know. If I can manually build a cfg file, and try dropping it in a few
spots until it's found, maybe that'll work. Does anyone have the
updater working on XP? Also is there any way we can manually grab
updates to see if it's working. Finally, thanks allot for the time you
spend in working on this. I find Dev-cpp very useful and appreciate
your work on it allot.
Take Care,
Robert Zaleski
=====
--------------------------------------------------------
You are free to do with document whatever you please but
reading it would be a good idea. I am naturally not
responsible for any consequence or action arising out of
the use of information provided in this document. I am
not a very responsible person and you heed me at your own
peril. - 'Linux Installation Strategies' LDP
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
|