dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
(11) |
2
(8) |
3
(7) |
|
4
(24) |
5
(11) |
6
(5) |
7
(5) |
8
(14) |
9
(20) |
10
(16) |
|
11
(11) |
12
(9) |
13
(14) |
14
(15) |
15
(19) |
16
(25) |
17
(13) |
|
18
(6) |
19
(17) |
20
(10) |
21
(14) |
22
(23) |
23
(10) |
24
|
|
25
|
26
(6) |
27
(32) |
28
(15) |
29
(7) |
30
(13) |
31
(36) |
|
From: <or...@vp...> - 2004-01-20 21:35:38
|
Daniel Glenfield wrote: > And I can't use a for loop and increment the pointer until it reaches > the end of the array because that is not safe, according to Code > Complete. Any more ideas? Maybe this isn't so easy after all! lol As Per Westermark noted, correctly, the ONLY one safe method is to store the size separately. Another (not so safe) alternative might be to use a special array element, which marks the end of the array. This is something, what char[] arrays use: the '\0' character, but you can use whatever you want. BUT, this method is not really the best, as getting the size requires you to iterate through the array, which can be very inefficient at large array sizes. So, just store the size in a separate counter, that's how most people do it, there's no wrong about it, actually, that's the best known method nowadays. You can safely use it. -- Greetings, Balázs |
|
From: Riccardo C. <ric...@vr...> - 2004-01-20 17:34:51
|
Hello, I have wrapped an image library to make it Object Oriented, and now my static library is called vImage.lib (the library which is based on is instead a dll). Now, to test the library I have this example file in a new project, and I cannot debug it. It just doesn't perform the step-by-step debug. To check if the project settings were ok I also used the "hello" example and pasted my code in it. Result: when I don't link to my library, everything worsk fine, as soon as link to it, it doesn't debug anymore. Note that the problem doesn't affect only the code based on my library, but all the code (i.e. also the one of the "hello" example that worked before) Note also that I have activated the generation of debug info when compiling the library as well. What can I do? thank you_ricky |
|
From: Daniel G. <sp...@ho...> - 2004-01-20 16:28:01
|
And I can't use a for loop and increment the pointer until it reaches the end of the array because that is not safe, according to Code Complete. Any more ideas? Maybe this isn't so easy after all! lol >From: Per Westermark <pw...@ia...> >To: Mohammed Iqbal <mi...@ac...> >CC: Daniel Glenfield <sp...@ho...>, ><dev...@li...> >Subject: Re: [Dev-C++] How to get the number of elements in an array >Date: Tue, 20 Jan 2004 17:21:41 +0100 (CET) > >The idea was good, but it only works for statically allocated arrays. >When the array is dynamically allocated, it isn't possible to check number >of entries. Some low-level functions might return size of the memory block >but that is highly nonportable, and it still doesn't answer number of >array entries, since the allocated block will almost always be rounded up >to a larger size. > >/Per W > >On Tue, 20 Jan 2004, Mohammed Iqbal wrote: > > > n_of_elements=sizeof(Buf)/sizeof(Buf[0]); > > > > Mohammed > > ----- Original Message ----- > > From: "Daniel Glenfield" <sp...@ho...> > > To: <dev...@li...> > > Sent: Tuesday, January 20, 2004 1:49 PM > > Subject: [Dev-C++] How to get the number of elements in an array > > > > > > > This is an easy Q I know but I can't think how to do it... > > > > > > Size = 9; // Decided by a function but set to 9 for this example > > > > > > int* Buf = new int[Size]; > > > > > > int Tmp = sizeof(Buf); > > > > > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) >are > > not > > > recognised (I thought they were functions but I guess not). > > > > > > Any thoughts? > > > > > > _________________________________________________________________ > > > Use MSN Messenger to send music and pics to your friends > > > http://www.msn.co.uk/messenger > > > > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by EclipseCon 2004 > > > Premiere Conference on Open Tools Development and Integration > > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > > http://www.eclipsecon.org/osdn > > > _______________________________________________ > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > 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 > > > _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Per W. <pw...@ia...> - 2004-01-20 16:21:54
|
The idea was good, but it only works for statically allocated arrays. When the array is dynamically allocated, it isn't possible to check number of entries. Some low-level functions might return size of the memory block but that is highly nonportable, and it still doesn't answer number of array entries, since the allocated block will almost always be rounded up to a larger size. /Per W On Tue, 20 Jan 2004, Mohammed Iqbal wrote: > n_of_elements=sizeof(Buf)/sizeof(Buf[0]); > > Mohammed > ----- Original Message ----- > From: "Daniel Glenfield" <sp...@ho...> > To: <dev...@li...> > Sent: Tuesday, January 20, 2004 1:49 PM > Subject: [Dev-C++] How to get the number of elements in an array > > > > This is an easy Q I know but I can't think how to do it... > > > > Size = 9; // Decided by a function but set to 9 for this example > > > > int* Buf = new int[Size]; > > > > int Tmp = sizeof(Buf); > > > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) are > not > > recognised (I thought they were functions but I guess not). > > > > Any thoughts? > > > > _________________________________________________________________ > > Use MSN Messenger to send music and pics to your friends > > http://www.msn.co.uk/messenger > > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > 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 > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Mohammed I. <mi...@ac...> - 2004-01-20 15:45:09
|
n_of_elements=sizeof(Buf)/sizeof(Buf[0]); Mohammed ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dev...@li...> Sent: Tuesday, January 20, 2004 1:49 PM Subject: [Dev-C++] How to get the number of elements in an array > This is an easy Q I know but I can't think how to do it... > > Size = 9; // Decided by a function but set to 9 for this example > > int* Buf = new int[Size]; > > int Tmp = sizeof(Buf); > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) are not > recognised (I thought they were functions but I guess not). > > Any thoughts? > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://www.msn.co.uk/messenger > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Daniel G. <sp...@ho...> - 2004-01-20 13:42:50
|
I tried that but it returns the size of the first element in the array (or whatever the pointer is pointing to). To set Size I called a function and it returns 320 (bytes required). This is most troubling as I should know this! lol Daniel >From: "Paul Muehlbach" <tr...@gm...> >To: "Daniel Glenfield" <sp...@ho...> >Subject: Re: [Dev-C++] How to get the number of elements in an array >Date: Tue, 20 Jan 2004 14:04:00 +0100 (MET) > > > This is an easy Q I know but I can't think how to do it... > > > > Size = 9; // Decided by a function but set to 9 for this example > > > > int* Buf = new int[Size]; > > > > int Tmp = sizeof(Buf); > > > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) are > > not > > recognised (I thought they were functions but I guess not). > > > > Any thoughts? > > > >try > >Tmp = sizeof(*Buf); > >(sorry,but normally,i use c-array functions ^^°) > >traexx > >-- >+++ GMX - die erste Adresse für Mail, Message, More +++ >Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail > _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Per W. <pw...@ia...> - 2004-01-20 13:41:14
|
In short - you can't.
sizeof(Buf) will return sizeof(int*) i.e. the size of a pointer.
There is no way of requesting the size of a dyanmically allocated array.
You must store the size somewhere else, such as:
struct {
int size;
int *ptr;
} Buf;
Buf.size = 9;
Buf.ptr = new int[Size];
/Per W
On Tue, 20 Jan 2004, Daniel Glenfield wrote:
> This is an easy Q I know but I can't think how to do it...
>
> Size = 9; // Decided by a function but set to 9 for this example
>
> int* Buf = new int[Size];
>
> int Tmp = sizeof(Buf);
>
> This can't be right. How do I get the size? Len(Buf) and Length(Buf) are not
> recognised (I thought they were functions but I guess not).
>
> Any thoughts?
>
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends
> http://www.msn.co.uk/messenger
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Daniel G. <sp...@ho...> - 2004-01-20 10:50:01
|
This is an easy Q I know but I can't think how to do it... Size = 9; // Decided by a function but set to 9 for this example int* Buf = new int[Size]; int Tmp = sizeof(Buf); This can't be right. How do I get the size? Len(Buf) and Length(Buf) are not recognised (I thought they were functions but I guess not). Any thoughts? _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |
|
From: RUDOLPH <ku...@sp...> - 2004-01-20 00:53:31
|
Thank you ageofscot, that will help me very much to focus in what i am trying to do. Excellant :-) ----- Original Message ----- From: <age...@co...> To: "DevCpp User Group" <dev...@li...>; "RUDOLPH" <ku...@sp...> Sent: Monday, January 19, 2004 6:52 PM Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > The only way I know: > 1. Write the code with Dev-C++. > 2. Transfer it to some removable storage device or a server. > 3. Compile the code on that platform. > > -- > ~~Scott Simontis~~ > Programmer > > |
|
From: RUDOLPH <ku...@sp...> - 2004-01-20 00:53:31
|
Hello Michael, Thank you your reply. What I was thinking about was to compliing a source code after the designing stage in w95 platform and then complie the same source code in another miniLinux computer with Devc++ or Gnu complier. Your answer have been helpful. Kind regards ----- Original Message ----- From: "Michael C Urban" <mu...@cb...> To: "RUDOLPH" <ku...@sp...> Cc: <dev...@li...> Sent: Monday, January 19, 2004 12:37 AM Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > What do you mean? > > Basically, you can't, unless you use WINE or some other emulator in Linux > to run the program. DevC++ works with MinGW, which generated machine code > for MS Windows. It won't run on Linux. > > To make the program run on Linux, you would have to recompile it using > GCC on Linux, which may or may not be an easy task depending on whether > the source code in question uses the Windows API. > > Mike > > On Mon, 19 Jan 2004, RUDOLPH wrote: > > > New year greeting to u all! > > > > Has anyone able to complied program using > > DevC++ in MS windows, and use or test it into > > other OS like linux ? > > > > Thank you in advance. > > Rudy > > > |