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
(7) |
2
(15) |
3
(3) |
4
(9) |
5
(7) |
6
(12) |
|
7
(18) |
8
(14) |
9
(11) |
10
(6) |
11
(16) |
12
(14) |
13
(7) |
|
14
|
15
|
16
(2) |
17
(3) |
18
(5) |
19
(3) |
20
(1) |
|
21
(3) |
22
(8) |
23
(14) |
24
(9) |
25
(8) |
26
(4) |
27
(2) |
|
28
(8) |
29
(1) |
30
(4) |
|
|
|
|
|
From: William Mc C. <WIL...@ms...> - 2004-11-11 23:00:21
|
You might also want to look at using "exclusive OR" on each byte. ----- Original Message -----=20 From: Daniel K. O.<mailto:dan...@ya...>=20 To: Joey Dala<mailto:jda...@ya...>=20 Cc: = dev...@li...<mailto:dev...@li...= e.net>=20 Sent: Thursday, November 11, 2004 10:34 AM Subject: Re: [Dev-C++] Convert Little-Endian to Big-Endian (and vice = versa) Joey Dala wrote: > Does anybody know a faster algorithm to swap the bytes > of an 'unsigned long' than this: > =20 > // SWAP 32-BITS > #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A &=20 > 0xff0000L) >> 8 ) | ((unsigned long)A >> 24)) Faster than this? Only if you use architecture-specific instructions.=20 The 486 (and higher) family has the "bswap" instruction. Here's an = example: --- #include <stdio.h> #define SWAP32(x) asm volatile ("bswap %0" : "=3Dr" (x) : "0" = (x)) int main(void) { int foo =3D 1; =20 printf("%08x\n", foo); =20 asm volatile ( "bswap %0" : "=3Dr" (foo) : "0" (foo) ); =20 printf("%08x\n", foo); SWAP32(foo); printf("%08x\n", foo); getchar(); return 0; } --- Notice the use of the extended assembly syntax, so GCC can perform=20 better optimizations around the asm beast. Also, the "volatile" keyword to make sure GCC won't move the assembly=20 statement around in the optimization proccess. Before you ask, some information about using AT&T assembly syntax and=20 extended syntax is available here:=20 = http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html<ht= tp://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html> Daniel K. O. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. = http://ads.osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick<http://ads.= osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick> _______________________________________________ Dev-cpp-users mailing list = Dev...@li...<mailto:Dev...@li...= e.net> TO UNSUBSCRIBE: = http://www23.brinkster.com/noicys/devcpp/ub.htm<http://www23.brinkster.co= m/noicys/devcpp/ub.htm> = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users<https://lists.= sourceforge.net/lists/listinfo/dev-cpp-users> |
|
From: Alexsandro M. <ale...@ho...> - 2004-11-11 19:03:49
|
Hi people, Let me know how to add dynamically Rich Text Edits in C++ Builder according to the number of syllables of a word. For example if a have a word like "Fonseca" with 3 syllables I want the program to add dynamically three Objects Rich Text Edit on the screen. Please, Alexsandro Meireles. _________________________________________________________________ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br |
|
From: Alexsandro M. <ale...@ho...> - 2004-11-11 19:02:24
|
Hi people, Let me know how to add dynamically Rich Text Edits in C++ Builder according to the number of syllables of a word. For example if a have a word like "Fonseca" with 3 syllables I want the program to add dynamically three Objects Rich Text Edit on the screen. Please, Alexsandro Meireles. _________________________________________________________________ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br |
|
From: Daniel K. O. <dan...@ya...> - 2004-11-11 18:37:26
|
Joey Dala wrote:
> Does anybody know a faster algorithm to swap the bytes
> of an 'unsigned long' than this:
>
> // SWAP 32-BITS
> #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A &
> 0xff0000L) >> 8 ) | ((unsigned long)A >> 24))
Faster than this? Only if you use architecture-specific instructions.
The 486 (and higher) family has the "bswap" instruction. Here's an example:
---
#include <stdio.h>
#define SWAP32(x) asm volatile ("bswap %0" : "=r" (x) : "0" (x))
int main(void)
{
int foo = 1;
printf("%08x\n", foo);
asm volatile (
"bswap %0"
: "=r" (foo)
: "0" (foo)
);
printf("%08x\n", foo);
SWAP32(foo);
printf("%08x\n", foo);
getchar();
return 0;
}
---
Notice the use of the extended assembly syntax, so GCC can perform
better optimizations around the asm beast.
Also, the "volatile" keyword to make sure GCC won't move the assembly
statement around in the optimization proccess.
Before you ask, some information about using AT&T assembly syntax and
extended syntax is available here:
http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html
Daniel K. O.
|
|
From: <wa...@wa...> - 2004-11-11 18:09:39
|
On 11 Nov 2004 at 10:52, Noorez Kassam wrote: > I am getting strange compile results with my libraries. When I have > all the files in one directory the library will build successfully. > But when I put it one level deep in the directory, I get results > saying that it could not find a certain object file when it was > linking everything into the library file. I checked the directories > under the tools/compile menu and they were correct. With my project > settings, the object files should have been created in the same > directory as everyting else. What else should I check? Make sure there are no spaces in the directory names. Watson (the pencil neck) Davis |
|
From: Noorez K. <dar...@ho...> - 2004-11-11 17:53:42
|
I am getting strange compile results with my libraries. When I have all the files in one directory the library will build successfully. But when I put it one level deep in the directory, I get results saying that it could not find a certain object file when it was linking everything into the library file. I checked the directories under the tools/compile menu and they were correct. With my project settings, the object files should have been created in the same directory as everyting else. What else should I check? _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Cary H. <xen...@gm...> - 2004-11-11 14:54:27
|
two things you should be considered: 1. In my experience, endian conversion is primarly used in porting code to a different platform. consequently, 2. You shouldn't make assumptions about how many bits are in an given type, as different compliers on the same platform, and even the same compiler on different platforms will used different sizes. An good example of this is in the WinAPI, Win32 says an unsigned long is 32 bits, while Win64 says its 64. On Thu, 11 Nov 2004 04:54:13 +0000 (GMT), Joey Dala <jda...@ya...> wrote: > > Hello, > > Does anybody know a faster algorithm to swap the bytes > of an 'unsigned long' than this: > > // SWAP 32-BITS > #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A & > 0xff0000L) >> 8 ) | ((unsigned long)A >> 24)) > > Thank You. > Joey > > ________________________________ > Yahoo! Messenger - Communicate instantly..."Ping" your friends today! > Download Messenger Now > > |
|
From: Cary H. <xen...@gm...> - 2004-11-11 14:31:19
|
ELF is the executable format that linux uses, and win32 is somewhat self-explanatory. *.inc are include files, very similar to *.h in c / c++. hope this helps. On Thu, 11 Nov 2004 10:42:43 +0100, Pascal <p.t...@ti...> wrote: > What is the good format for NAam.exe or Nasm.exe to make a valid object > with devcpp? > ELF or Win32? > what is the .inc file? > my *.inc are a Macro definition for the *.asm file. > How to include this Macro and after make an objetct with .asm file? > How to compile .inc an .asm directly in devcpp? > > Thanks > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&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 > |
|
From: <or...@vp...> - 2004-11-11 10:06:15
|
Rob Lawless wrote: > maybe this is a dumb question > but say i have either a vector or pointers or a vector of references of= =20 > some object > if i run through the vector using an iterator & erase a certain element= =20 > in the vector specified by the iterator using the erase method in=20 > vector, is the destructor for the object that is pointed/referenced=20 > called & thus the object no long exists or is only that particular=20 > reference/pointer in the vector erased ? > any help greatly aprreciated > regards > rob Storing references in a vector is not possible. You can only store=20 pointers, or whole objects. The vector doesn't care about what you=20 store, it will make copies of it, whenever you insert something into it.=20 If you store pointers, only the pointer is copied. Because the vector doesn't know what you store, it cannot call delete on=20 the stored objects, so you have to do it manually yourself. -- Greetings, Bal=E1zs |
|
From: Pascal <p.t...@ti...> - 2004-11-11 09:44:28
|
What is the good format for NAam.exe or Nasm.exe to make a valid object with devcpp? ELF or Win32? what is the .inc file? my *.inc are a Macro definition for the *.asm file. How to include this Macro and after make an objetct with .asm file? How to compile .inc an .asm directly in devcpp? Thanks |
|
From: Siva C. <siv...@ya...> - 2004-11-11 06:39:29
|
you will have to send the compiler error messages and your code!! --- reg...@be... wrote: > I keep getting an compile error when I have an > desructor in the devC++ compiler. > how can I solve this problem? __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com |
|
From: <reg...@be...> - 2004-11-11 05:55:09
|
I keep getting an compile error when I have an desructor in the devC++ compiler. how can I solve this problem? |
|
From: Daniel K. O. <dan...@ya...> - 2004-11-11 05:05:50
|
MD T wrote:
> I tried to develop programs in newly downloaded and
> installed dev c++ in my computer with windows Xp o/s.
> After typing the program and pressing F9 i don't see the screen which
> should show mw the result of the program. The log says g++ exe.and
> then some file names, execution terminated and compiled successfully.
> Can someone tell me what is the mistake here?
>
Go to your project options and select the type "Win32 Console".
But be aware that once a program ends, it ends; it won't stop waiting
until you read the output unless you tell it to; three ways to do it are:
cin.ignore(); // C++ only
or
system("pause");
or
getchar();
Use one of them whenever appropriate, and the program will stop at that
point waiting for user input.
Daniel K. O.
|
|
From: Joey D. <jda...@ya...> - 2004-11-11 04:54:16
|
Hello, Does anybody know a faster algorithm to swap the bytes of an 'unsigned long' than this: // SWAP 32-BITS #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A & 0xff0000L) >> 8 ) | ((unsigned long)A >> 24)) Thank You. Joey --------------------------------- Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now |
|
From: MD T <md...@re...> - 2004-11-11 03:08:14
|
=A0=0AHi All,=0A Good day,=0A I tried to develop progra=
ms in newly downloaded and installed dev c++ in my computer with windows Xp=
o/s.=0AAfter typing the program and pressing F9 i don't see the screen whi=
ch should show mw the result of the program. The log says g++ exe.and then =
some file names, execution terminated and compiled successfully. Can someon=
e tell me what is the mistake here? Or if there is a DEV C++ tutorial avail=
able?=0AI tried the following:=0A=0AGenerating a number in a specific range=
=0A=0AIf we want to produce numbers in a specific range, rather than betwe=
en 0 and RAND_MAX, we can use the modulo operator. It's not the best way to=
generate a range but it's the simplest. If we use rand()%n we generate a n=
umber from 0 to n-1. By adding an offset to the result we can produce a ran=
ge that is not zero based. The following code will produce 20 random number=
s from 1 to 10: =0A=0A=0A#include <cstdlib> =0A=0A#include <ctime> =0A#incl=
ude <iostream> =0A=0Ausing namespace std; =0A=0Aint main() =0A{ =0Asrand((u=
nsigned)time(0)); =0Aint random_integer; =0Afor(int index=3D0; index<20; in=
dex++){ =0Arandom_integer =3D (rand()%10)+1; =0Acout << random_integer << e=
ndl; =0A} =0A} =0A=0A=0A=0AA better method, though slightly more complicate=
d, is given below. This overcomes problems that are sometimes experienced w=
ith some types of pseudo random number generator that might be supplied wit=
h your compiler. As before, this will output 20 random numbers from 1 to 10=
. =0A=0A=0A=0A#include <iostream> =0A=0A#include <ctime> =0A#include <cstdl=
ib> =0A=0Ausing namespace std; =0A=0Aint main() =0A{ =0Asrand((unsigned)tim=
e(0)); =0Aint random_integer; =0Aint lowest=3D1, highest=3D10; =0Aint range=
=3D(highest-lowest)+1; =0Afor(int index=3D0; index<20; index++){ =0Arandom_=
integer =3D lowest+int(range*rand()/(RAND_MAX + 1.0)); =0Acout << random_in=
teger << endl; =0A} =0A}=0A=0AThe problem persists, Please look into this,=
=0AThanks and best regards,=0AMD T=0A |
|
From: Rob L. <rob...@nt...> - 2004-11-11 01:47:16
|
maybe this is a dumb question but say i have either a vector or pointers or a vector of references of = some object if i run through the vector using an iterator & erase a certain element = in the vector specified by the iterator using the erase method in = vector, is the destructor for the object that is pointed/referenced = called & thus the object no long exists or is only that particular = reference/pointer in the vector erased ? any help greatly aprreciated regards=20 rob |