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
(17) |
3
(7) |
4
(12) |
|
5
(4) |
6
(11) |
7
(9) |
8
(5) |
9
(7) |
10
(2) |
11
(5) |
|
12
(1) |
13
(6) |
14
(1) |
15
(11) |
16
(4) |
17
(9) |
18
(6) |
|
19
(1) |
20
|
21
(14) |
22
(1) |
23
(6) |
24
|
25
|
|
26
|
27
(2) |
28
(1) |
29
(6) |
30
(9) |
31
(1) |
|
|
From: Daniel K. O. <dan...@ya...> - 2004-12-21 22:50:19
|
Per Westermark wrote: >There are a number of available debug libraries, or it's quite easy to >write own new/delete replacements. > > Just adding info: recently someone asked about memory-leaking libs on MinGW-users list; on www.mingw.org you can find "mpatrol" in the downloads section. There's also this one that at first glance seems to have some more features: http://sourceforge.net/mailarchive/forum.php?thread_id=6202653&forum_id=5119 (I never used them, so I don't know which one is better) Daniel K. O. |
|
From: Per W. <pw...@ia...> - 2004-12-21 17:19:26
|
Just dumping amount of used heap is quite booring. The best solution is to use a memory debug library, that replaces the standard new and delete operators with debug-instrumented alternatives. If a program has memory leaks, you may then dump information source code file that made the memory allocation, the size of the block, sometimes date/time when it was allocated and/or data type of the memory blocks. There are a number of available debug libraries, or it's quite easy to write own new/delete replacements. /Per W On Tue, 21 Dec 2004, Renato Conte wrote: > I teach Dev-cpp to my student. > I have the problem to know the heap dimension at the beginning of main > program, > and the measure the heap memory at the end of program, so to know if > some dynamic > object remains in memory or if some mistake on new and delete. > It is important for me, because I teach C++ language, and I want the > class distructors work good. > With C++ Borland 3.1, I used the function coreleft(); > > Renato Conte from ITALY > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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: Renato C. <co...@ma...> - 2004-12-21 17:08:49
|
I teach Dev-cpp to my student. I have the problem to know the heap dimension at the beginning of main program, and the measure the heap memory at the end of program, so to know if some dynamic object remains in memory or if some mistake on new and delete. It is important for me, because I teach C++ language, and I want the class distructors work good. With C++ Borland 3.1, I used the function coreleft(); Renato Conte from ITALY |
|
From: Daniel K. O. <dan...@ya...> - 2004-12-21 16:58:31
|
Jakob Eklund wrote: > Is there any way to view the content of a devpak without/before > installing it? It's just a tar.bz2 archive. Any decompression utility should be able to open it, like 7-zip (www.7-zip.org). Daniel K. O. |
|
From: Neszt T. <ne...@sz...> - 2004-12-21 16:44:33
|
> Is there any way to view the content of a devpak without/before installing > it? The devpak is a tar.bz2 file. Regards, Neszt Tibor |
|
From: Jakob E. <mai...@ko...> - 2004-12-21 16:28:25
|
Hi. Is there any way to view the content of a devpak without/before installin= g =20 it? /Jakob Eklund |
|
From: Per W. <pw...@ia...> - 2004-12-21 12:13:52
|
Can't see why the STL support should need to improve. The first difference is the names of all types - especially for built-in data types. I can't see that this is in violation of the standard. All different data types still have unique names. It's just that you should not write code if (!strcmp(typeid(a).name(),"byte")) ... and assume that you know the text value of typeid(a).name(). There is also a difference in sizeof(long double) and size of a Polymorph member pointer. No problems there either. gcc and VS 2003 doesn't use the same memory layouts, name mangling etc so they are not expected to be identical. /Per W On Tue, 21 Dec 2004, Justin Fan wrote: > Hi, all > I just read a article from CSDN, > http://community.csdn.net/Expert/topic/3662/3662092.xml?temp=.1579553 > since its language is Chinese, so I just copy the source file here and > list the result. > Please compare the result generated by Dev-C++ from VS 2003. How do > you think about it? > > Source Code: > #include <iostream> > #include <typeinfo> > > template<typename T> > class Type > { > public: > static void print() > { > std::cout << "This Type is " << typeid(T).name() > << ", It's size = " << sizeof(T) << "." > << std::endl; > } > }; > > struct Polymorph > { > virtual ~Polymorph() {} > }; > > enum Bit { sero, one }; > enum Intensity { black = 0, brightest = 1000 }; > > int main() > { > Type<bool>::print(); > Type<char>::print(); > Type<signed char>::print(); > Type<unsigned char>::print(); > Type<wchar_t>::print(); > Type<short int>::print(); > Type<signed short int>::print(); > Type<unsigned short int>::print(); > Type<int>::print(); > Type<signed int>::print(); > Type<unsigned int>::print(); > Type<long int>::print(); > Type<signed long int>::print(); > Type<unsigned long int>::print(); > Type<long long int>::print(); > Type<signed long long int>::print(); > Type<unsigned long long int>::print(); > > Type<float>::print(); > Type<double>::print(); > Type<long double>::print(); > > Type<int *>::print(); > Type<int (*)()>::print(); > Type<void (Polymorph::*)()>::print(); > Type<void*>::print(); > > Type<Bit>::print(); > Type<Intensity>::print(); > > return 0; > } > > The result from Dev-C++: > > This Type is b, It's size = 1. > This Type is c, It's size = 1. > This Type is a, It's size = 1. > This Type is h, It's size = 1. > This Type is w, It's size = 2. > This Type is s, It's size = 2. > This Type is s, It's size = 2. > This Type is t, It's size = 2. > This Type is i, It's size = 4. > This Type is i, It's size = 4. > This Type is j, It's size = 4. > This Type is l, It's size = 4. > This Type is l, It's size = 4. > This Type is m, It's size = 4. > This Type is x, It's size = 8. > This Type is x, It's size = 8. > This Type is y, It's size = 8. > This Type is f, It's size = 4. > This Type is d, It's size = 8. > This Type is e, It's size = 12. > This Type is Pi, It's size = 4. > This Type is PFivE, It's size = 4. > This Type is M9PolymorphFvvE, It's size = 8. > This Type is Pv, It's size = 4. > This Type is 3Bit, It's size = 4. > This Type is 9Intensity, It's size = 4. > > The result from VS2003: > > This Type is bool, It's size = 1. > This Type is char, It's size = 1. > This Type is signed char, It's size = 1. > This Type is unsigned char, It's size = 1. > This Type is unsigned short, It's size = 2. > This Type is short, It's size = 2. > This Type is short, It's size = 2. > This Type is unsigned short, It's size = 2. > This Type is int, It's size = 4. > This Type is int, It's size = 4. > This Type is unsigned int, It's size = 4. > This Type is long, It's size = 4. > This Type is long, It's size = 4. > This Type is unsigned long, It's size = 4. > This Type is __int64, It's size = 8. > This Type is __int64, It's size = 8. > This Type is unsigned __int64, It's size = 8. > This Type is float, It's size = 4. > This Type is double, It's size = 8. > This Type is long double, It's size = 8. > This Type is int *, It's size = 4. > This Type is int (__cdecl*)(void), It's size = 4. > This Type is void (__thiscall Polymorph::*)(void), It's size = 4. > This Type is void *, It's size = 4. > This Type is enum Bit, It's size = 4. > This Type is enum Intensity, It's size = 4. > > > -- > Thanks > Z.J. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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: Per W. <pw...@ia...> - 2004-12-21 08:19:07
|
First of all, check the return value of fscanf() to see if one word was
retrieved - the last time it will return 0 and your code prints the
previous contents of the word buffer.
Second. Don't use fscanf() like that - if someone enters a word longer
than 199 characters you are smoked. Either specify a maximum number of
allowed characters for the word buffer, or rewrite your code to use
fgets() instead.
The world is full of buffer-overflows without the need to produce more
virus doors ;)
/Per W
On Tue, 21 Dec 2004, Eduardo Rebellis wrote:
> Hi everybody,
>
> I'm trying out the following piece of code:
>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main() {
> FILE *fp;
> char word[100];
>
> if((fp = fopen("mystuff.txt", "r")) == NULL) {
> printf("Error while opening file");
> exit(1);
> }
>
> while(!feof(fp)) {
> fscanf(fp, "%s", &word);
> printf(" %s ", word);
> }
>
> return 0;
> }
|
|
From: Justin F. <jus...@gm...> - 2004-12-21 07:47:12
|
Hi, all I just read a article from CSDN, http://community.csdn.net/Expert/topic/3662/3662092.xml?temp=.1579553 since its language is Chinese, so I just copy the source file here and list the result. Please compare the result generated by Dev-C++ from VS 2003. How do you think about it? Source Code: #include <iostream> #include <typeinfo> template<typename T> class Type { public: static void print() { std::cout << "This Type is " << typeid(T).name() << ", It's size = " << sizeof(T) << "." << std::endl; } }; struct Polymorph { virtual ~Polymorph() {} }; enum Bit { sero, one }; enum Intensity { black = 0, brightest = 1000 }; int main() { Type<bool>::print(); Type<char>::print(); Type<signed char>::print(); Type<unsigned char>::print(); Type<wchar_t>::print(); Type<short int>::print(); Type<signed short int>::print(); Type<unsigned short int>::print(); Type<int>::print(); Type<signed int>::print(); Type<unsigned int>::print(); Type<long int>::print(); Type<signed long int>::print(); Type<unsigned long int>::print(); Type<long long int>::print(); Type<signed long long int>::print(); Type<unsigned long long int>::print(); Type<float>::print(); Type<double>::print(); Type<long double>::print(); Type<int *>::print(); Type<int (*)()>::print(); Type<void (Polymorph::*)()>::print(); Type<void*>::print(); Type<Bit>::print(); Type<Intensity>::print(); return 0; } The result from Dev-C++: This Type is b, It's size = 1. This Type is c, It's size = 1. This Type is a, It's size = 1. This Type is h, It's size = 1. This Type is w, It's size = 2. This Type is s, It's size = 2. This Type is s, It's size = 2. This Type is t, It's size = 2. This Type is i, It's size = 4. This Type is i, It's size = 4. This Type is j, It's size = 4. This Type is l, It's size = 4. This Type is l, It's size = 4. This Type is m, It's size = 4. This Type is x, It's size = 8. This Type is x, It's size = 8. This Type is y, It's size = 8. This Type is f, It's size = 4. This Type is d, It's size = 8. This Type is e, It's size = 12. This Type is Pi, It's size = 4. This Type is PFivE, It's size = 4. This Type is M9PolymorphFvvE, It's size = 8. This Type is Pv, It's size = 4. This Type is 3Bit, It's size = 4. This Type is 9Intensity, It's size = 4. The result from VS2003: This Type is bool, It's size = 1. This Type is char, It's size = 1. This Type is signed char, It's size = 1. This Type is unsigned char, It's size = 1. This Type is unsigned short, It's size = 2. This Type is short, It's size = 2. This Type is short, It's size = 2. This Type is unsigned short, It's size = 2. This Type is int, It's size = 4. This Type is int, It's size = 4. This Type is unsigned int, It's size = 4. This Type is long, It's size = 4. This Type is long, It's size = 4. This Type is unsigned long, It's size = 4. This Type is __int64, It's size = 8. This Type is __int64, It's size = 8. This Type is unsigned __int64, It's size = 8. This Type is float, It's size = 4. This Type is double, It's size = 8. This Type is long double, It's size = 8. This Type is int *, It's size = 4. This Type is int (__cdecl*)(void), It's size = 4. This Type is void (__thiscall Polymorph::*)(void), It's size = 4. This Type is void *, It's size = 4. This Type is enum Bit, It's size = 4. This Type is enum Intensity, It's size = 4. -- Thanks Z.J. |
|
From: Su <sud...@ya...> - 2004-12-21 05:56:24
|
Please unsubscribe me from this site Dayal ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony |
|
From: Daniel K. O. <dan...@ya...> - 2004-12-21 05:11:34
|
Eduardo Rebellis wrote:
> while(!feof(fp)) {
> fscanf(fp, "%s", &word);
> printf(" %s ", word);
> }
>
>
The way you use feof() is wrong.
>Can anyone point me a way to correct such a
>unexpected behavior?
>
>
First thing: FORGET everything you learned about I/O in Pascal.
Then see:
http://www.lysator.liu.se/c/bwk-on-pascal.html#environment
and
http://www.drpaulcarter.com/cs/common-c-errors.php#4.2
Daniel K. O.
|
|
From: Eduardo R. <reb...@gm...> - 2004-12-21 03:41:36
|
Hi everybody,
I'm trying out the following piece of code:
#include <stdio.h>
#include <stdlib.h>
int main() {
FILE *fp;
char word[100];
if((fp = fopen("mystuff.txt", "r")) == NULL) {
printf("Error while opening file");
exit(1);
}
while(!feof(fp)) {
fscanf(fp, "%s", &word);
printf(" %s ", word);
}
return 0;
}
I've had problems with this program when "mystuff.txt" has a phrase
which ends with a blank space. In this case, the program outputs the
last word twice. Can anyone point me a way to correct such a
unexpected behavior?
Thanks in advance,
---
Rebellis
|