dev-cpp-users Mailing List for Dev-C++ (Page 372)
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: Tom C. <jat...@gm...> - 2003-06-06 17:58:02
|
Hadi, Strg is the German equivalent of the Ctrl key. You're being told to press <Ctrl+O>. --Tom ----- Original Message ----- From: "Charon" <ch...@ri...> To: <dev...@li...> Sent: Friday, June 06, 2003 6:45 PM Subject: Re: [Dev-C++] Installing new package > nooo not that complicated :) > > when you are "in" the program (i.e. after you doubleclicked it) press "strg" and the key > "o" at the same time > this will bring up the dialog to open a file > > or click with your mouse at the upper left corner of the windows at "Package" and then > "Install Package..." > you'll get the same dialog then :) > > then just select the package somewhere on your harddisk and click "open" > > thats it :) > > regards > Charon > > > Am 06.06.2003 08:44:47, schrieb "Hadi Ariwibowo" <ha...@te...>: > > >> From: Charon <ch...@ri...> > >> To: dev...@li... > >> Subject: Re: [Dev-C++] Installing new package > >> > >> 1. have a look into your Dev-C++ folder and search the "packman.exe" > > > >Yup, I found it. > > > >> 2. use the shortcut "strg+o" to bring up the dialog to open a file > > > >What do you mean by this (strg+o) ? > >Is it the parameter(s) for packman.exe ? Or what ? > >I need more explanation here, because I tried : packman.exe strg+o and still > >there's no option to open the package. > >Sorry for my dummies :) > > > >Regards, > >Hadi > > > > |
|
From: Provic <pr...@wa...> - 2003-06-06 17:55:58
|
Hello ! this is a generic windows-programming problem : when I insert some specials controls in my program (with any resource editor, like Weditres), lines containing 'msctls_******32' are added to the rc. These controls are well compiled by windres... but because of them the dialog abort at runtime, isn't able to display such controls (these are like progress bars, cursors...). I haven't found any help on the net about this... Could you help me ? Thanks a lot ! |
|
From: Charon <ch...@ri...> - 2003-06-06 17:46:15
|
nooo not that complicated :) when you are "in" the program (i.e. after you doubleclicked it) press "strg" and the key "o" at the same time this will bring up the dialog to open a file or click with your mouse at the upper left corner of the windows at "Package" and then "Install Package..." you'll get the same dialog then :) then just select the package somewhere on your harddisk and click "open" thats it :) regards Charon Am 06.06.2003 08:44:47, schrieb "Hadi Ariwibowo" <ha...@te...>: >> From: Charon <ch...@ri...> >> To: dev...@li... >> Subject: Re: [Dev-C++] Installing new package >> >> 1. have a look into your Dev-C++ folder and search the "packman.exe" > >Yup, I found it. > >> 2. use the shortcut "strg+o" to bring up the dialog to open a file > >What do you mean by this (strg+o) ? >Is it the parameter(s) for packman.exe ? Or what ? >I need more explanation here, because I tried : packman.exe strg+o and still >there's no option to open the package. >Sorry for my dummies :) > >Regards, >Hadi > > > >------------------------------------------------------- >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: TIEN T. <tie...@ms...> - 2003-06-06 13:54:58
|
Good morning, Does anyone have instructions on how to set up environment for Dev-Cpp compiler for windows to include Mingw and Allegro libraries? I need help setting up my environment. Thanks in advance for your help... TCT _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
From: <and...@su...> - 2003-06-06 13:00:13
|
Crucial help!!!
Terrific!
Thank you
André
-----Mensagem original-----
De: Per Westermark [mailto:pw...@ia...]
Enviada em: sexta-feira, 6 de junho de 2003 09:44
Para: André Macário Barros
Cc: Dev-Cpp-Users
Assunto: Re: [Dev-C++] Single Linked List-IV
On Fri, 6 Jun 2003, André Macário Barros wrote:
> Dear users,
> Please consider this (modificated) Single Linked List Code:
>
>
> #include <stdio.h>
> #include <stdlib.h>
>
> #define MAX 5
>
> struct address
> {
> char name[40];
> char phone[20];
> struct address *next;
> };
>
> void slstore(struct address *, struct address **, struct address **);
> void display(struct address *);
> void list(struct address **);
> void init(struct address **);
>
> int main()
> {
> struct address *info=NULL, *start=NULL, *last=NULL;
> int i;
>
> for(i=0; i<MAX; i++)
> {
> init(&info);
> printf("Enter name: ");
> gets(info->name);
> printf("Entre com phone: ");
> gets(info->phone);
> slstore(info, &start, &last);
> }
> printf("List Recorded:\n");
> list(&start);
> while (start)
> {
> info = start;
> start = start->next;
> free(info);
> }
> system("PAUSE");
> return(0);
> }
>
> void slstore(struct address *i, struct address **start_arg,
> struct address **last_arg)
> {
}
> if(*last_arg==NULL) *start_arg=i;
> else (*last_arg)->next=i;
> i->next=NULL;
> *last_arg=i;
> }
>
> void display(struct address *info)
> {
> printf("Actual address-->%p\n", info);
> printf("%s\n", info->name);
> printf("%s\n", info->phone);
> printf("Next address-->%p\n", info->next);
> printf("\n");
> system("PAUSE");
> }
>
> void list(struct address **start_arg)
> {
> struct address *info;
>
PWM: Don't allocate any info - the list already contains the entries, and
PWM: you only want to use info as a pointer poiting to the entries
PWM: available in the list.
PWM: Remove this line.> init(&info);
> info = *start_arg;
> while(info)
> {
> display(info);
> info = info->next;
> }
> }
>
> void init(struct address **arg)
> {
> *arg= malloc(1*sizeof(struct address));
> if(!(*arg))
> {
> printf("sem memória\n");
> system("PAUSE");
> exit(EXIT_FAILURE);
> }
> }
>
> ==>My questions:
> A) One example of addresses that are printed on the screen are:
> 002224C8
> 00222510
> 00222558
> 002225A0
> 002225E8
> The distance between theese addresses is 72 bytes, not 64 as expected
> because the size of the struct address.
> WHY?
PWM: Because the memory library have to allocate some extra space for
book-keeping. Normally malloc() will store the size of the memory block (4
byte) and a pointer to the previously allocated block (4 byte).
>
> B) Could the final loop:
> while (start)
> {
> info = start;
> start = start->next;
> free(info);
> }
> be changed by a function call for a function like
>
> free_ptr(&start);
>
> void free_ptr(struct address **arg)
> {
> struct address *info=NULL;
>
> while (*arg)
> {
> info = *arg;
> *arg = (*arg)->next;
> free(info);
> }
> }
PWM: Yes, but you might consider adding a line
PWM: *arg = NULL;
PWM: to make sure that the caller knows that start doesn't point to any
PWM: elements anymore.
>
> Thanks
> Andre
>
>
>
>
>
> -------------------------------------------------------
> 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: Ioannis V. <iv...@em...> - 2003-06-06 12:51:47
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Andr? Macario Barros > Sent: Friday, June 06, 2003 5:10 AM > To: Dev-Cpp-Users > Subject: [Dev-C++] Single Linked List Problem-II >=20 >=20 >=20 > I forgot the "int i;" variable declaration, ok? > And this is a "C" program (aswering for the orientation=20 > "allways say if you > are working > with a C or C++ program"). I have a head ache so I shall not try to understand how the program = works (if it works). :) However here is my hint: =20 > *** > The slstore function stores the new element in the last position. = It=B4s > "next" record is filled > with the NULL address to mean that there aren=B4t more elements=20 > in the list. > At the end of the program 5 memory spaces of 64 bytes each one, are > allocated for each element. > How can I use the free command to return the memory for the computer? You will free each one separately using a loop. Please keep me informed = if you manage to make it work. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Per W. <pw...@ia...> - 2003-06-06 12:45:05
|
On Fri, 6 Jun 2003, Andr=E9 Mac=E1rio Barros wrote:
> Dear users,
> Please consider this (modificated) Single Linked List Code:
>
>
> #include <stdio.h>
> #include <stdlib.h>
>
> #define MAX 5
>
> struct address
> {
> char name[40];
> char phone[20];
> struct address *next;
> };
>
> void slstore(struct address *, struct address **, struct address **);
> void display(struct address *);
> void list(struct address **);
> void init(struct address **);
>
> int main()
> {
> struct address *info=3DNULL, *start=3DNULL, *last=3DNULL;
> int i;
>
> for(i=3D0; i<MAX; i++)
> {
> init(&info);
> printf("Enter name: ");
> gets(info->name);
> printf("Entre com phone: ");
> gets(info->phone);
> slstore(info, &start, &last);
> }
> printf("List Recorded:\n");
> list(&start);
> while (start)
> {
> info =3D start;
> start =3D start->next;
> free(info);
> }
> system("PAUSE");
> return(0);
> }
>
> void slstore(struct address *i, struct address **start_arg,
> struct address **last_arg)
> {
}
> if(*last_arg=3D=3DNULL) *start_arg=3Di;
> else (*last_arg)->next=3Di;
> i->next=3DNULL;
> *last_arg=3Di;
> }
>
> void display(struct address *info)
> {
> printf("Actual address-->%p\n", info);
> printf("%s\n", info->name);
> printf("%s\n", info->phone);
> printf("Next address-->%p\n", info->next);
> printf("\n");
> system("PAUSE");
> }
>
> void list(struct address **start_arg)
> {
> struct address *info;
>
PWM: Don't allocate any info - the list already contains the entries, and
PWM: you only want to use info as a pointer poiting to the entries
PWM: available in the list.
PWM: Remove this line.> init(&info);
> info =3D *start_arg;
> while(info)
> {
> display(info);
> info =3D info->next;
> }
> }
>
> void init(struct address **arg)
> {
> *arg=3D malloc(1*sizeof(struct address));
> if(!(*arg))
> {
> printf("sem mem=F3ria\n");
> system("PAUSE");
> exit(EXIT_FAILURE);
> }
> }
>
> =3D=3D>My questions:
> A) One example of addresses that are printed on the screen are:
> 002224C8
> 00222510
> 00222558
> 002225A0
> 002225E8
> The distance between theese addresses is 72 bytes, not 64 as expected
> because the size of the struct address.
> WHY?
PWM: Because the memory library have to allocate some extra space for
book-keeping. Normally malloc() will store the size of the memory block (4
byte) and a pointer to the previously allocated block (4 byte).
>
> B) Could the final loop:
> while (start)
> {
> info =3D start;
> start =3D start->next;
> free(info);
> }
> be changed by a function call for a function like
>
> free_ptr(&start);
>
> void free_ptr(struct address **arg)
> {
> struct address *info=3DNULL;
>
> while (*arg)
> {
> info =3D *arg;
> *arg =3D (*arg)->next;
> free(info);
> }
> }
PWM: Yes, but you might consider adding a line
PWM: *arg =3D NULL;
PWM: to make sure that the caller knows that start doesn't point to any
PWM: elements anymore.
>
> Thanks
> Andre
>
>
>
>
>
> -------------------------------------------------------
> 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: <and...@su...> - 2003-06-06 12:15:38
|
Dear users,
Please consider this (modificated) Single Linked List Code:
#include <stdio.h>
#include <stdlib.h>
#define MAX 5
struct address
{
char name[40];
char phone[20];
struct address *next;
};
void slstore(struct address *, struct address **, struct address **);
void display(struct address *);
void list(struct address **);
void init(struct address **);
int main()
{
struct address *info=NULL, *start=NULL, *last=NULL;
int i;
for(i=0; i<MAX; i++)
{
init(&info);
printf("Enter name: ");
gets(info->name);
printf("Entre com phone: ");
gets(info->phone);
slstore(info, &start, &last);
}
printf("List Recorded:\n");
list(&start);
while (start)
{
info = start;
start = start->next;
free(info);
}
system("PAUSE");
return(0);
}
void slstore(struct address *i, struct address **start_arg,
struct address **last_arg)
{
if(*last_arg==NULL) *start_arg=i;
else (*last_arg)->next=i;
i->next=NULL;
*last_arg=i;
}
void display(struct address *info)
{
printf("Actual address-->%p\n", info);
printf("%s\n", info->name);
printf("%s\n", info->phone);
printf("Next address-->%p\n", info->next);
printf("\n");
system("PAUSE");
}
void list(struct address **start_arg)
{
struct address *info;
init(&info);
info = *start_arg;
while(info)
{
display(info);
info = info->next;
}
}
void init(struct address **arg)
{
*arg= malloc(1*sizeof(struct address));
if(!(*arg))
{
printf("sem memória\n");
system("PAUSE");
exit(EXIT_FAILURE);
}
}
==>My questions:
A) One example of addresses that are printed on the screen are:
002224C8
00222510
00222558
002225A0
002225E8
The distance between theese addresses is 72 bytes, not 64 as expected
because the size of the struct address.
WHY?
B) Could the final loop:
while (start)
{
info = start;
start = start->next;
free(info);
}
be changed by a function call for a function like
free_ptr(&start);
void free_ptr(struct address **arg)
{
struct address *info=NULL;
while (*arg)
{
info = *arg;
*arg = (*arg)->next;
free(info);
}
}
Thanks
Andre
|
|
From: Per W. <pw...@ia...> - 2003-06-06 07:57:46
|
Before going for how to use free(), let's have a look at how you use
malloc()...
See below:
/Per W
On Thu, 5 Jun 2003, Andr=E9 Mac=E1rio Barros wrote:
>
> I forgot the "int i;" variable declaration, ok?
> And this is a "C" program (aswering for the orientation "allways say if y=
ou
> are working
> with a C or C++ program").
>
> -----Mensagem original-----
> De: Andr=E9 Mac=E1rio Barros [mailto:and...@su...]
> Enviada em: quinta-feira, 5 de junho de 2003 22:58
> Para: Dev-Cpp-Users
> Assunto: Single Linked List Problem
>
>
> Dear Users,
>
> I need to discover a way to use the "free" command to correctly avoid 5
> records dinamically allocated in a simple Single Linked List program.
> Here are some pieces of it:
>
> ...
>
> #include <stdio.h>
> #include <stdlib.h>
>
> #define MAX 5
>
> struct address
> {
> char name[40];
> char phone[20];
> struct address *next;
> };
>
> void slstore(struct address *, struct address **, struct address **);
>
> ...
> int main()
> {
>
> struct address *info, *start, *last;
>
PWM: Here you allocate a buffer to start
> init(&start);
PWM: And here you trow away your reference to it by setting start to NULL
> start=3DNULL;
PWM: Here you allocate a buffer to last
> init(&last);
PWM: And here the second buffer is thrown away
> last=3DNULL;
> for(i=3D0; i<MAX; i++)
> {
> init(&info);
> printf("Enter name: ");
> gets(info->name);
> printf("Enter phone: ");
> gets(info->phone);
> slstore(info, &start, &last);
> }
> ...
> system("PAUSE");
> return(0);
> }
>
> void slstore(struct address *i, struct address **start_arg,
> struct address **last_arg)
> {
> if(*last_arg=3D=3DNULL) *start_arg=3Di;
> else (*last_arg)->next=3Di;
> i->next=3DNULL;
> *last_arg=3Di;
> }
>
> void init(struct address **arg)
> {
> *arg=3D malloc(1*sizeof(struct address));
> if(!(*arg))
> {
> printf("sem mem=F3ria\n");
> system("PAUSE");
> exit(EXIT_FAILURE);
> }
PWM: Should initialize the allocated address too:
*arg->next =3D NULL;
*arg->name[0] =3D '\0';
*arg->phone[0] =3D '\0';
> }
>
PWM: Try something like:
// No need to allocate anything until you read in entries.
start =3D last =3D NULL;
for (...) {
init(&info);
...
if (!start) {
start =3D last =3D info;
} else {
last->next =3D info;
last =3D info;
}
}
PWM: To then release everything do:
while (start) {
info =3D start;
start =3D start->next;
free(info);
}
> ***
> The slstore function stores the new element in the last position. It=B4s
> "next" record is filled
> with the NULL address to mean that there aren=B4t more elements in the li=
st.
> At the end of the program 5 memory spaces of 64 bytes each one, are
> allocated for each element.
> How can I use the free command to return the memory for the computer?
>
> Thanx
> Andre
>
>
>
>
> -------------------------------------------------------
> 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: Hadi A. <ha...@te...> - 2003-06-06 06:44:01
|
> From: Charon <ch...@ri...> > To: dev...@li... > Subject: Re: [Dev-C++] Installing new package > > 1. have a look into your Dev-C++ folder and search the "packman.exe" Yup, I found it. > 2. use the shortcut "strg+o" to bring up the dialog to open a file What do you mean by this (strg+o) ? Is it the parameter(s) for packman.exe ? Or what ? I need more explanation here, because I tried : packman.exe strg+o and still there's no option to open the package. Sorry for my dummies :) Regards, Hadi |
|
From: iad929 <ia...@jo...> - 2003-06-06 06:31:48
|
Can anyone on the list recommend any tools for analysis of C++ code? I'm looking for something that will show me dependencies, what methods are called within other methods, etc., and possibly find instances, or suspected instances, of repetitive code, etc., etc. Basically, I have a very large, badly designed class I have to try to | analyze and break down and try to re-design and try to make it more efficient, flexible, self-documenting, etc. Using 8-point type, the code for this class's implementation (the .cpp file) is well over 100 pages long, and it just seems too much to manage without some tools for the purpose -- of which I have few to none. Freeware would be best for my budget, or cheap shareware -- but I am willing to consider just about anything. Thanks in advance. IAD |
|
From: Frank W. <F.W...@wi...> - 2003-06-06 06:15:29
|
Hello Jared, I have to include the <ncurses.h> and add the lib to the linker. Greetings Frank >>> "Jared" <jar...@2-...> 06/06 1:02 >>> Does anyone know how to clear the screen in dev-c++? I've been told to do #include <curses.h> clear(); That gives me an error about not being able to find curses.h Appreciate any info. ------------------------------------------------------- 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: JB M. <jb...@so...> - 2003-06-06 03:08:21
|
Hello,
I am trying to compile a modular program. Is there an order to this =
(i.e. if I'm using Borland C++ Compiler at the DOS command prompt I'd =
have to compile each file separately, but with Dev C++ 4 (an IDE) I'm =
not sure.
When I try to compile the files separately, I get zero errors but =
zero bytes compiled ... what could be wrong?
I anybody can explain the procedure to me, I would appreciate it.
Below is the main() function "Main.cpp" which refers to the header and =
implementation files.
TIA
---
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but =
when you do, it blows away your whole leg."=20
- Bjarne Stroustrup
--
J.B.
-------------------------------------------------------------------------=
--------
#include <iostream>
#include "PromptModule.h"
#include "ErrorHandlingModule.h"
using namespace std;
float GetDividend(void) // Returns dividend, a float
{
float Dividend =3D 0;
cout << "Dividend: ";
cin >> Dividend;
return Dividend; // Returns a copy of Dividend
}
float GetDivisor(void) // Returns the divisor
{
float Divisor =3D 1;
cout << "Divisor: ";
cin >> Divisor;
return Divisor;
}
float Divide
(const float theDividend, const float theDivisor) // Takes =
unmodifiable (const) arguments, returns float
{
return (theDividend/theDivisor); // Returns the result of the =
calculation
}
int main(int argc, char* argv[])
{
SAMSErrorHandling::Initialize();
float ReturnCode =3D 0;
try
{
float Dividend =3D GetDividend();
float Divisor =3D GetDivisor();
cout << Divide(Dividend, Divisor) << endl;
}
catch (...)
{
ReturnCode =3D
SAMSErrorHandling::HandleNotANumberError();
};
SAMSPrompt::PauseForUserAcknowledgement();
return ReturnCode;
}
|
|
From: <and...@su...> - 2003-06-06 02:10:07
|
I forgot the "int i;" variable declaration, ok?
And this is a "C" program (aswering for the orientation "allways say if you
are working
with a C or C++ program").
-----Mensagem original-----
De: André Macário Barros [mailto:and...@su...]
Enviada em: quinta-feira, 5 de junho de 2003 22:58
Para: Dev-Cpp-Users
Assunto: Single Linked List Problem
Dear Users,
I need to discover a way to use the "free" command to correctly avoid 5
records dinamically allocated in a simple Single Linked List program.
Here are some pieces of it:
...
#include <stdio.h>
#include <stdlib.h>
#define MAX 5
struct address
{
char name[40];
char phone[20];
struct address *next;
};
void slstore(struct address *, struct address **, struct address **);
...
int main()
{
struct address *info, *start, *last;
init(&start);
start=NULL;
init(&last);
last=NULL;
for(i=0; i<MAX; i++)
{
init(&info);
printf("Enter name: ");
gets(info->name);
printf("Enter phone: ");
gets(info->phone);
slstore(info, &start, &last);
}
...
system("PAUSE");
return(0);
}
void slstore(struct address *i, struct address **start_arg,
struct address **last_arg)
{
if(*last_arg==NULL) *start_arg=i;
else (*last_arg)->next=i;
i->next=NULL;
*last_arg=i;
}
void init(struct address **arg)
{
*arg= malloc(1*sizeof(struct address));
if(!(*arg))
{
printf("sem memória\n");
system("PAUSE");
exit(EXIT_FAILURE);
}
}
***
The slstore function stores the new element in the last position. It´s
"next" record is filled
with the NULL address to mean that there aren´t more elements in the list.
At the end of the program 5 memory spaces of 64 bytes each one, are
allocated for each element.
How can I use the free command to return the memory for the computer?
Thanx
Andre
|
|
From: <and...@su...> - 2003-06-06 01:58:21
|
Dear Users,
I need to discover a way to use the "free" command to correctly avoid 5
records dinamically allocated in a simple Single Linked List program.
Here are some pieces of it:
...
#include <stdio.h>
#include <stdlib.h>
#define MAX 5
struct address
{
char name[40];
char phone[20];
struct address *next;
};
void slstore(struct address *, struct address **, struct address **);
...
int main()
{
struct address *info, *start, *last;
init(&start);
start=NULL;
init(&last);
last=NULL;
for(i=0; i<MAX; i++)
{
init(&info);
printf("Enter name: ");
gets(info->name);
printf("Enter phone: ");
gets(info->phone);
slstore(info, &start, &last);
}
...
system("PAUSE");
return(0);
}
void slstore(struct address *i, struct address **start_arg,
struct address **last_arg)
{
if(*last_arg==NULL) *start_arg=i;
else (*last_arg)->next=i;
i->next=NULL;
*last_arg=i;
}
void init(struct address **arg)
{
*arg= malloc(1*sizeof(struct address));
if(!(*arg))
{
printf("sem memória\n");
system("PAUSE");
exit(EXIT_FAILURE);
}
}
***
The slstore function stores the new element in the last position. It´s
"next" record is filled
with the NULL address to mean that there aren´t more elements in the list.
At the end of the program 5 memory spaces of 64 bytes each one, are
allocated for each element.
How can I use the free command to return the memory for the computer?
Thanx
Andre
|
|
From: Jared <jar...@2-...> - 2003-06-05 23:01:49
|
Does anyone know how to clear the screen in dev-c++? I've been told to do #include <curses.h> clear(); That gives me an error about not being able to find curses.h Appreciate any info. |
|
From: Ioannis V. <iv...@em...> - 2003-06-05 02:28:43
|
Check this: http://www23.brinkster.com/noicys/devcpp/ub.htm Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Su > Sent: Wednesday, June 04, 2003 9:47 PM > To: dev...@li... > Subject: [Dev-C++] request for unsubscribscription > > > > Please unsubscribe me from your mailing list > > ______________________________________________________________ > __________ > Missed your favourite TV serial last night? Try the new, Yahoo! TV. > visit http://in.tv.yahoo.com > > > ------------------------------------------------------- > 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: Tom C. <jat...@gm...> - 2003-06-04 21:26:39
|
"Denise N.R. Azevedo" <de...@dg...> wrote: > I´m programming with DEV C++ and I need, or I would like, to find a free > ftp class. Please, can someone help me > indicating me a site ou sometihog like that. Download the wxWindows package from http://www.bloodshed.net/dev/ and use the wxFTP class. --Tom |
|
From: Per W. <pw...@ia...> - 2003-06-04 21:19:35
|
Use DLL - dynamic link library - for large code that you want to share between several applications, or when you want to be able to bug-fix or extend the library function without sending out the application again. Normally, for s string class I would recommend static linking, i.e. as a library (*.a for gcc and other unix-based compilers, *.lib for windows-based compilers). It is easier to program using static libraries, and since the size of a string class is so small, there is no need to have multiple executables sharing the same binary library. /Per W On Wed, 4 Jun 2003, Jonas Granqvist wrote: > Hello everyone! > > I have been programming C++ for about six months and I have started to pr= ogram > a class to handle text strings (similar to the cstring/string.h) as an ex= cercise. > I have after some thinking decided to put my class in a library file (.li= b or .dll). > My problems are that I don't know what the difference is. Dlls are someho= w dynamic, > right? My question is, which should I use? > > My other question is how to use these different kind of libraries. I foun= d an > alternative where I could create them, but the projects are all empty. I = would > be very glad if someone could show me an example about how to use dll and= lib > files together with a program > > Thanks in advance. > > Jonas Granqvist > > > > > __________________________________________________________ > http://www.hotbrev.com/ - N=E4tets farligaste e-postadresser > > > > > ------------------------------------------------------- > 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: Charon <ch...@ri...> - 2003-06-04 20:32:53
|
1. have a look into your Dev-C++ folder and search the "packman.exe" 2. use the shortcut "strg+o" to bring up the dialog to open a file 3. select your package and click "open" 4. enjoy hope i could help :) Am 04.06.2003 21:03:26, schrieb "Hadi Ariwibowo" <ha...@te...>: >Hello all, >I just download and try Dev-C++ 4.0 in my PC (Win 98SE). >Then I read in FAQ about adding new package(s) in Dev-C++, so I go to >http://www.bloodshed.net/dev/packages/index.html >Here, I download fltk library, then as the website said : >"...To install them, simply doubleclick on them. " >And I do what it said, but it seems there's no program associated with >.DevPak file(s). >So, I can't install this package. Then I searched the archive file(s), with >the hope to found this problem and the solution, but again I am not lucky >enough to found out about this. >So, please tell me what should I do to install this package ? > >Thanks, >Hadi > > > >------------------------------------------------------- >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: Denise N.R. A. <de...@dg...> - 2003-06-04 20:18:00
|
Hello everyone! I=B4m programming with DEV C++ and I need, or I would like, to find a fre= e ftp class. Please, can someone help me indicating me a site ou sometihog like that. Thanks in advance. Denise Azevedo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 19/5/2003 =20 |
|
From: Hadi A. <ha...@te...> - 2003-06-04 19:02:03
|
Hello all, I just download and try Dev-C++ 4.0 in my PC (Win 98SE). Then I read in FAQ about adding new package(s) in Dev-C++, so I go to http://www.bloodshed.net/dev/packages/index.html Here, I download fltk library, then as the website said : "...To install them, simply doubleclick on them. " And I do what it said, but it seems there's no program associated with .DevPak file(s). So, I can't install this package. Then I searched the archive file(s), with the hope to found this problem and the solution, but again I am not lucky enough to found out about this. So, please tell me what should I do to install this package ? Thanks, Hadi |
|
From: Jonas G. <jo...@ho...> - 2003-06-04 18:58:52
|
Hello everyone! I have been programming C++ for about six months and I have started to program a class to handle text strings (similar to the cstring/string.h) as an excercise. I have after some thinking decided to put my class in a library file (.lib or .dll). My problems are that I don't know what the difference is. Dlls are somehow dynamic, right? My question is, which should I use? My other question is how to use these different kind of libraries. I found an alternative where I could create them, but the projects are all empty. I would be very glad if someone could show me an example about how to use dll and lib files together with a program Thanks in advance. Jonas Granqvist __________________________________________________________ http://www.hotbrev.com/ - Nätets farligaste e-postadresser |
|
From: <sud...@ya...> - 2003-06-04 18:47:36
|
Please unsubscribe me from your mailing list
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
|
|
From: <sud...@ya...> - 2003-06-04 18:47:33
|
Please unsubscribe me from your mailing list
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
|