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
(18) |
2
(3) |
3
(5) |
4
(10) |
5
(2) |
6
(15) |
7
(10) |
8
(17) |
9
(28) |
10
(9) |
11
(20) |
12
(27) |
13
(16) |
14
(2) |
15
(5) |
16
(11) |
17
(6) |
18
(10) |
19
(21) |
20
(24) |
21
(15) |
22
(13) |
23
(26) |
24
(8) |
25
(9) |
26
(11) |
27
(13) |
28
(3) |
29
(4) |
30
(26) |
|
|
|
|
|
From: <or...@vp...> - 2003-06-08 22:26:17
|
Psymaster ??????? wrote: > Well, I link with -lmingw32 -lSDLmain -lSDL -mwindows Then I got no idea. The linker errors say, that you don't have a WinMain, and sdl_init. Do the compiler finds those libs? -- Greetings, Balázs |
From: Psymaster ??????? <ro...@ho...> - 2003-06-08 21:04:22
|
> >Do you link with libSDL.a (or something similar) and the windows >subsystem (-mwindows)? > >-- >Greetings, > Balázs > Well, I link with -lmingw32 -lSDLmain -lSDL -mwindows _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: CARLSON, J. M. <CA...@st...> - 2003-06-08 20:59:04
|
I am sure this has got to be simple, but I have yet to find any documetation.... How can you print to the printer instead of the screen in C++ Thanks for any help, Jay |
From: Luigi S. <gi...@li...> - 2003-06-08 20:29:24
|
On Sat, Jun 07, 2003 at 09:38:34PM +0200, Per Westermark wrote: > [...] > > I know it's a bit extra noisy with dual indirection, but since the code > is C and not C++, slstore() can't take references to pointers. > > /Per W Probably, he could have avoided the double indirection using something like: struct slist { struct address *start; struct address *last; }; so that a pointer to "struct slist" would be used, still allowing all changes to "start" and "last" to be made. -- >> gisan >> |
From: Per W. <pw...@ia...> - 2003-06-08 19:08:12
|
The code below should work ok for a copy constructor. My note about assigning to a non-empty tree is based on the assumption that you would like to use copyTree() to implement an assignment operator too, an then the target BST might already contain a tree. /Per W On Sun, 8 Jun 2003, Socha, David F wrote: > Would a copy constructor as such work: > > > template <typename T> BST<T>::BST(const BST& origTree){ //copy constructor > > > if(origTree.root){ > > copyTree(origTree.root, root); > > } > > else{ > > root = NULL; > > } > > } > > > also, what do you mean by assigning to a non-empty tree. I would think that the copy constructor would simply make a fresh (new) copy of the tree. I dont understand why you would have to worry about releasing memory for a non empty tree > > thanks, > > David Socha > > here is the copy tree code again > > > > > /**************************************************************************** > > > > > > copyTree function > > > > > > Used by the copy constructor to copy the tree > > > > > > Sent: pointer to the original node, pointer to the node being copied to > > > > > > Returns: Nothing > > > > > > Works by: Creating a new node on the tree being copied, copy the data to the > > > > > > node, checks to see if a left node exists on the tree, if yes > > > > > > repeat the process using on the left node, if not, do nothing. Then checks > > > > > > the right, if it exists repeat process on the right side, if not, do nothing > > > > > > NOTE: This function is a recursive process > > > > > > ****************************************************************************/ > > > > > > > > > > > > template<typename T> void BST<T>::copyTree(Node* origNode, Node* copyNode){ > > > > > > copyNode = new Node(origNode->data); > > > > > > > > > > > > if(origNode->left){ > > > > > > copyTree(origNode->left, copyNode->left); > > > > > > } > > > > > > > > > > > > if(origNode->right){ > > > > > > copyTree(origNode->right, copyNode->right); > > > > > > } > > > > > > } > > > > > > //End copyTree > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > 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: Giligun <too...@ya...> - 2003-06-08 18:25:00
|
Could someone who remembers send me a reminder of how to unsubscribe? __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: <or...@vp...> - 2003-06-08 17:04:50
|
Psymaster ??????? wrote: > Could you please help me? I have tried dev-c++ packages and it always > gives an error about "winmain@16" or "SDL_init" something. I think I'm > doing everything right, I've added the compiler command-line options, > and sdl.dll in /system32 but no go. Do you link with libSDL.a (or something similar) and the windows subsystem (-mwindows)? -- Greetings, Balázs |
From: Socha, D. F <dav...@us...> - 2003-06-08 16:54:44
|
Would a copy constructor as such work: =20 template <typename T> BST<T>::BST(const BST& origTree){ //copy = constructor =09 if(origTree.root){ copyTree(origTree.root, root); } else{ root =3D NULL; } } also, what do you mean by assigning to a non-empty tree. I would think = that the copy constructor would simply make a fresh (new) copy of the = tree. I dont understand why you would have to worry about releasing = memory for a non empty tree thanks, David Socha here is the copy tree code again > > = /************************************************************************= **** > > > > copyTree function > > > > Used by the copy constructor to copy the tree > > > > Sent: pointer to the original node, pointer to the node being copied = to > > > > Returns: Nothing > > > > Works by: Creating a new node on the tree being copied, copy the = data to the > > > > node, checks to see if a left node exists on the tree, if yes > > > > repeat the process using on the left node, if not, do nothing. Then = checks > > > > the right, if it exists repeat process on the right side, if not, do = nothing > > > > NOTE: This function is a recursive process > > > > = *************************************************************************= ***/ > > > > > > > > template<typename T> void BST<T>::copyTree(Node* origNode, Node* = copyNode){ > > > > copyNode =3D new Node(origNode->data); > > > > > > > > if(origNode->left){ > > > > copyTree(origNode->left, copyNode->left); > > > > } > > > > > > > > if(origNode->right){ > > > > copyTree(origNode->right, copyNode->right); > > > > } > > > > } > > > > //End copyTree |
From: Per W. <pw...@ia...> - 2003-06-08 16:04:02
|
Slight clarification. Your copy constructor doesn't have to be prepared to release any old memory - but should be prepared to assign NULL values. However, if you want to use copyTree() to implement an assignment operator, then you must also think about releasing an old tree. /Per W On Sun, 8 Jun 2003, Per Westermark wrote: > Your copy constructor - and your copyTree() method - would not work. > > What if you make assign to a non-empty tree. In that case, you have to > release the old tree before assigning the new. > > Also, you only handle the case where origTree does contain anything. If it > doesn't, then the target tree should have the same pointer set to NULL. > > /Per W > > On Sun, 8 Jun 2003, Socha, David F wrote: > > > I am using the most current version of DEV C++ > > > > This is the code I am currently using for copy constructor on my Binary Search Tree code. I don't believe this should cause any problems but if anyone can give me help on this I would greatly appricate it. Keep in mind that the copy Tree function works on a recursive basis > > > > > > > > template <typename T> BST<T>::BST(const BST& origTree){ //copy constructor > > > > if(origTree.root){ > > > > copyTree(origTree.root, root); > > > > } > > > > } > > > > > > > > > > > > /**************************************************************************** > > > > copyTree function > > > > Used by the copy constructor to copy the tree > > > > Sent: pointer to the original node, pointer to the node being copied to > > > > Returns: Nothing > > > > Works by: Creating a new node on the tree being copied, copy the data to the > > > > node, checks to see if a left node exists on the tree, if yes > > > > repeat the process using on the left node, if not, do nothing. Then checks > > > > the right, if it exists repeat process on the right side, if not, do nothing > > > > NOTE: This function is a recursive process > > > > ****************************************************************************/ > > > > > > > > template<typename T> void BST<T>::copyTree(Node* origNode, Node* copyNode){ > > > > copyNode = new Node(origNode->data); > > > > > > > > if(origNode->left){ > > > > copyTree(origNode->left, copyNode->left); > > > > } > > > > > > > > if(origNode->right){ > > > > copyTree(origNode->right, copyNode->right); > > > > } > > > > } > > > > //End copyTree > > > > Thanks for all the help, > > > > David Socha > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > > thread debugger on the planet. Designed with thread debugging features > > you've never dreamed of, try TotalView 6 free at www.etnus.com. > > _______________________________________________ > > 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: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > 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: Per W. <pw...@ia...> - 2003-06-08 15:50:50
|
Your copy constructor - and your copyTree() method - would not work. What if you make assign to a non-empty tree. In that case, you have to release the old tree before assigning the new. Also, you only handle the case where origTree does contain anything. If it doesn't, then the target tree should have the same pointer set to NULL. /Per W On Sun, 8 Jun 2003, Socha, David F wrote: > I am using the most current version of DEV C++ > > This is the code I am currently using for copy constructor on my Binary Search Tree code. I don't believe this should cause any problems but if anyone can give me help on this I would greatly appricate it. Keep in mind that the copy Tree function works on a recursive basis > > > > template <typename T> BST<T>::BST(const BST& origTree){ //copy constructor > > if(origTree.root){ > > copyTree(origTree.root, root); > > } > > } > > > > > > /**************************************************************************** > > copyTree function > > Used by the copy constructor to copy the tree > > Sent: pointer to the original node, pointer to the node being copied to > > Returns: Nothing > > Works by: Creating a new node on the tree being copied, copy the data to the > > node, checks to see if a left node exists on the tree, if yes > > repeat the process using on the left node, if not, do nothing. Then checks > > the right, if it exists repeat process on the right side, if not, do nothing > > NOTE: This function is a recursive process > > ****************************************************************************/ > > > > template<typename T> void BST<T>::copyTree(Node* origNode, Node* copyNode){ > > copyNode = new Node(origNode->data); > > > > if(origNode->left){ > > copyTree(origNode->left, copyNode->left); > > } > > > > if(origNode->right){ > > copyTree(origNode->right, copyNode->right); > > } > > } > > //End copyTree > > Thanks for all the help, > > David Socha > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > 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: Per W. <pw...@ia...> - 2003-06-08 15:40:15
|
If the list is non-empty, then *last is non-NULL. In that case, the OLD last entry should have it's next pointer pointing at the NEW last entry. It doesn't matter if the list was empty or not. After an insert - the insert is always at the end of the list - *last should be set to point to the NEW last entry. Without this last line, LAST would always be NULL, and you wouldn't get a linked list. /Per W On Sun, 8 Jun 2003, Ioannis Vranos wrote: > > -----Original Message----- > > From: Per Westermark [mailto:pw...@ia...] > > Sent: Saturday, June 07, 2003 10:39 PM > > To: Ioannis Vranos > > Cc: 'Dev-Cpp-Users' > > Subject: RE: [Dev-C++] Single Linked List-IV > > > > > > The slstore() function DOES need it's last line, or else the > > list will not > > get a pointer to the last element. The pointer to the last > > element is used > > to allow insert of new elements last, without having to > > iterate throught > > the list. > > > Perhaps I am missing something but as I understand it the statement > > *last_arg=i; > > makes the preceding statement > > else > (*last_arg)->next=i; > > > redundant. > > > > > > > I know it's a bit extra noisy with dual indirection, but > > since the code > > is C and not C++, slstore() can't take references to pointers. > > > And? double pointers occupy space themselves too. > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > 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: Psymaster ??????? <ro...@ho...> - 2003-06-08 14:49:41
|
Could you please help me? I have tried dev-c++ packages and it always gives an error about "winmain@16" or "SDL_init" something. I think I'm doing everything right, I've added the compiler command-line options, and sdl.dll in /system32 but no go. _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
From: Socha, D. F <dav...@us...> - 2003-06-08 14:30:42
|
I am using the most current version of DEV C++ =20 This is the code I am currently using for copy constructor on my Binary = Search Tree code. I don't believe this should cause any problems but if = anyone can give me help on this I would greatly appricate it. Keep in = mind that the copy Tree function works on a recursive basis =20 template <typename T> BST<T>::BST(const BST& origTree){ //copy = constructor if(origTree.root){ copyTree(origTree.root, root); } } =20 =20 /************************************************************************= **** copyTree function Used by the copy constructor to copy the tree Sent: pointer to the original node, pointer to the node being copied to Returns: Nothing Works by: Creating a new node on the tree being copied, copy the data to = the node, checks to see if a left node exists on the tree, if yes repeat the process using on the left node, if not, do nothing. Then = checks the right, if it exists repeat process on the right side, if not, do = nothing NOTE: This function is a recursive process *************************************************************************= ***/ =20 template<typename T> void BST<T>::copyTree(Node* origNode, Node* = copyNode){ copyNode =3D new Node(origNode->data); =20 if(origNode->left){ copyTree(origNode->left, copyNode->left); } =20 if(origNode->right){ copyTree(origNode->right, copyNode->right); } } //End copyTree Thanks for all the help, David Socha |
From: Ioannis V. <iv...@em...> - 2003-06-08 12:47:53
|
-----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Socha, David F > Sent: Sunday, June 08, 2003 2:06 PM > To: Dev C++ Mailing List > Subject: [Dev-C++] Pointers and copy constructors > Please define language, C or C++. > item 1: Are pointers passed by value or by reference In C by value, in C++ can be passed in both ways (by reference using templates). > item 2: Would it be a problem if in my copy constructor I > called a function to recursivly move through a binary search > tree and copy the data, keep in mind my BST is made of a > series of linked, dynamically alocated pointers. If it is an external function no, provided that you will not run out of memory. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: Ioannis V. <iv...@em...> - 2003-06-08 12:39:33
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Saturday, June 07, 2003 10:39 PM > To: Ioannis Vranos > Cc: 'Dev-Cpp-Users' > Subject: RE: [Dev-C++] Single Linked List-IV > > > The slstore() function DOES need it's last line, or else the > list will not > get a pointer to the last element. The pointer to the last > element is used > to allow insert of new elements last, without having to > iterate throught > the list. Perhaps I am missing something but as I understand it the statement *last_arg=i; makes the preceding statement else (*last_arg)->next=i; redundant. > > I know it's a bit extra noisy with dual indirection, but > since the code > is C and not C++, slstore() can't take references to pointers. And? double pointers occupy space themselves too. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: Socha, D. F <dav...@us...> - 2003-06-08 11:14:44
|
item 1: Are pointers passed by value or by reference =20 item 2: Would it be a problem if in my copy constructor I called a = function to recursivly move through a binary search tree and copy the = data, keep in mind my BST is made of a series of linked, dynamically = alocated pointers. =20 Thanks for all the help David Socha |
From: Christian S. <sm...@xs...> - 2003-06-08 04:21:10
|
Hi, So I just found out that I can use GCC/MingGW to do closed source applications: << http://www.fsf.org/licenses/gpl-faq.html#CanIUseGPLToolsForNF >> But can I use the c lib (stdio,string, time and others) for closed source applications?? Or should I download and use the MS C lib? I would like to stay with DevCPP and use wxwindows + stl + clib and develop someday closed source applications next to open source. |