dev-cpp-users Mailing List for Dev-C++ (Page 258)
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: Per W. <pw...@ia...> - 2004-01-31 13:18:02
|
Maya - try compiling your examples :-)
This is a construct that is affected by language.
In C:
struct Human {
...
};
Require you to always declare your variables as:
struct Human a_human;
In C++ - together with the addition of the class keyword - you can get
away with:
struct Human {
...
};
Human a_human;
or
class Human {
public:
...
};
Human a_human;
So basically:
typedef struct Human {
...
} _Human;
declares a structure named Human, and typedef this struct to the name
_Human.
In C, you can then declare a variable as either of:
struct Human a_human; /* referencing the name of the struct */
_Human a_human; /* referencing type typedef name */
while in C++ it doesn't matter. It is even possible to define the data
type as:
typedef struct Human {
..
} Human;
i.e. same name for the struct declaration and for type typedef.
/Per W
On Sat, 31 Jan 2004, Maya wrote:
> In the first one you have declared a struct named _Human and
> instantiated it right after the declaration with name Human. In your
> program you can just say for instance: " Human.height = 1.70 " and it
> will work
> Here is another example:
> typedef struct _Human {
> int height;
> }Human;
>
> int main(){
> std::cout << "The Human Project" << std::endl;
> std::cout << "How tall are you " ;
> std::cin >> Human.height;
> return 0;
> }
>
> In the second example you have declared a struct named Human, but has
> not yet been instantiated.
> Your code would look something like this
>
> struct Human {
> int height;
> };
> int main(){
> Human human; // Instantiating the Human struct
> std::cout << "The Human Project" << std::endl;
> std::cout << "How tall are you " ;
> std::cin >> human.height; // <<==
> return 0;
> }
> Which one is better? it depends on the program you are working on, really!
>
> Hava a good one!
> coo...@ho... wrote:
>
> > what is the difference between these two
> >
> > typedef struct _Human
> > {
> > int height;
> > }Human;
> >
> > struct Human
> > {
> > int height;
> > };
> >
> >
> > and in the first one, what does 'Human' mean at the end? In both
> > structs u can declare a Human type, even without the Human thing at
> > the end in the first one
> >
> > _________________________________________________________________
> > STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
> >
> >
> >
> >
> > -------------------------------------------------------
> > 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
>
>
> --
>
> FYI
> http://www.astro.umd.edu/~marshall/abbrev.html
>
> E-Mail Policy
> http://www.vif.com/users/escalante/Email_Policy.html
>
> * You cannot exercise your power to a point of humiliation.
> - Jean Chretien
>
> * The media's the most powerful entity on earth. They have the
> power to make the innocent guilty and to make the guilty
> innocent, and that's power.
> - Malcom X
> * "Innocent until proven guilty", no... not in Canada!!
>
>
>
>
> -------------------------------------------------------
> 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: <or...@vp...> - 2004-01-31 12:30:19
|
Maya wrote:
> In the first one you have declared a struct named _Human and=20
> instantiated it right after the declaration with name Human. In your=20
> program you can just say for instance: " Human.height =3D 1.70 " and it=
=20
> will work
> Here is another example:
> typedef struct _Human {
> int height;
> }Human;
>=20
> int main(){
> std::cout << "The Human Project" << std::endl;
> std::cout << "How tall are you " ;
> std::cin >> Human.height;
> return 0;
> }
No, it is not true. In fact this doesn't even work.
--
Greetings,
Bal=C3=A1zs
|
|
From: Maya <Esc...@ne...> - 2004-01-31 12:14:33
|
In the first one you have declared a struct named _Human and
instantiated it right after the declaration with name Human. In your
program you can just say for instance: " Human.height = 1.70 " and it
will work
Here is another example:
typedef struct _Human {
int height;
}Human;
int main(){
std::cout << "The Human Project" << std::endl;
std::cout << "How tall are you " ;
std::cin >> Human.height;
return 0;
}
In the second example you have declared a struct named Human, but has
not yet been instantiated.
Your code would look something like this
struct Human {
int height;
};
int main(){
Human human; // Instantiating the Human struct
std::cout << "The Human Project" << std::endl;
std::cout << "How tall are you " ;
std::cin >> human.height; // <<==
return 0;
}
Which one is better? it depends on the program you are working on, really!
Hava a good one!
coo...@ho... wrote:
> what is the difference between these two
>
> typedef struct _Human
> {
> int height;
> }Human;
>
> struct Human
> {
> int height;
> };
>
>
> and in the first one, what does 'Human' mean at the end? In both
> structs u can declare a Human type, even without the Human thing at
> the end in the first one
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
>
>
>
>
> -------------------------------------------------------
> 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
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Jack C. <jac...@ya...> - 2004-01-31 08:14:55
|
--- Sami Barakat <in...@ba...> wrote: > Hi, > I have been learning C++ for about 4 months now from online free > resources and i feel that i would like to gain a better understanding > of > the language and become more advanced at it. I know 4 months isn't > much > time but I have done programming in PHP before and grasped the basics > of > C++ pretty easily. > I am simply asking people from the list if they could recommend any > GOOD > C++ programming books that are not Visual Studio, because i would > like > to program on Linux as well as Windows without having to do major > changes to the code, so will be using the gcc compiler all the time. > It > would also be nice if the book could explain how to program using > sockets ( I know they are different for Windows and Linux ). I am > doing > this more as a hobby at the moment and maybe later on take a course > at > uni in it. Im not too bothered about how much the book may cost, all > i > am really interested in is the clarity of the book and how far i can > go > with it ( I want to go far :) ). > > Thanks in advance for the suggestions. Hi, from my experience, starting programming is a better way to learn the programming language than reading books, besides you'll have to deal with all the error messages later even after you have learned the language, and you'll get a lot of error messages (no joke), and as long as one of thousands of errors remains, your program don't compile. The best resource I've found for practicing C/C++ programming is programming in GTK. It is Linux based, and very straight forward and intuitive. After you've been familiar with GTK programming and conquered your thousands of errors, you are already pretty good at C/C++. The GTK's official website has a very good tutorial. There's another website called something like "C/C++ Frequent Asked Questions", which is very useful because it has a very big list of most of the mistakes people make when programming with C/C++. They also compiled a book with the same name for sale, but the website has more information because it's updated. Sorry I forget the website's address, but if you search the book's name on amazon.com you should be able to find that website. That's my opinion. Besides, the more I program, the more I think it's the design that matters, not how well you memorize the language, because it's the final product that counts, and good design has a better chance of making a better final product than being proficient in that language. Bye. Jack ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |
|
From: invognito i. <mvc...@ho...> - 2004-01-31 06:16:36
|
<html><div style='background-color:'><P><BR><BR></P> <DIV> <DIV class=RTE> <P>Hi I am AFROMEISTER and this is my first ever post to the list,</P> <P>I have been wondering for some time and searched through the forums, but as I am a C++ newbie I have been unable to find any information that I can use about making a library using Dev-C++. My e-mail adress is <A href="mailto:MVC...@ho...">MVC...@ho...</A> and any information or URL's relating to making a library using Dev-C++ would be gratefully reveived.<BR>sincerely thankfull,</P> <P>AFROMEISTER<BR><BR></P></DIV></DIV></div><br clear=all><hr>Hot chart ringtones and polyphonics. <a href="http://g.msn.com/8HMBENAU/2737??PS="> Click here.</a> </html> |
|
From: <de...@ci...> - 2004-01-31 06:01:21
|
UDTVectorEXPIMP looks like it is probably a template definition. So somewhere in the code someone is saying something like: UDTVectorEXPIMP fred; where it may be that it should be UDTVectorEXPIMP<int> fred; The exact details of what's needed can only be known from finding the definition of UDTVectorEXPIMP to know how many parameters it expects. In article <000001c3e51b$b432ed60$fe97abd4@CALVINBALL>, al...@vi... (Alessandro Bugatti) wrote: > > I downloaded the neoengine.devpak from devpaks.org and I installed it. > I = > use DevC++ 4.9.8.5 and Mingw compiler > I tried to compile some tutorial but the compiler say > =20 > ISO C++ forbids declaration of `UDTVectorEXPIMP' with no type > > Some suggestions? > > Thanks > Alex |
|
From: Mohammed I. <mi...@ac...> - 2004-01-31 05:08:19
|
Hi.. Note that knowing the language doesn't mean you will be a programmer!! Mohammed |
|
From: Obi <ob...@ch...> - 2004-01-31 04:51:31
|
At 00:18 29/01/2004 +0000, Miguel Ram=EDrez J=E1vega wrote: >On Wed, 2004-01-28 at 09:04, Oleksandr Yermolenko wrote: > > Hi all, > > Little question about delete operator. > > Can i fall into trouble when making a call "delete this" in the > > class member function ? > > > >What do you mean exactly by "falling into trouble"? Obviously, the first >think one thinks at seeing that is the risk of dangling references. Any >reference to that struct instance will be invalid. And second, valgrind >prompts the following when executing the snippet of code you sent: Also you need to be sure the instance is actually new-ed. If the instance is an automatic or static variable callinf "delete this" will have undefined behaviour, probably bad. If you want to "delete this" you are recommended to have private constructors and destructor. Use a factory method to create objects. |
|
From: Haakon M. E. <ha...@nh...> - 2004-01-31 04:40:05
|
http://www.ai.mit.edu/people/phw/phw.html is the home page of Patrick Henry Winston, prof. at the artificial = intelligence laboratory at MIT. I recommend reading his "Introduction to = Artifical Intelligence", because it describes human problem solving = solutions. It is very readable, and you'll probably find some insights = you can use. He has also written "On to C++", which I haven't read, but = I can recommend the author ;-) Here is a link to some information about the book, and it is available = from online bookstores. http://www.ai.mit.edu/people/phw/Books/CPPBACK.HTML Yours sincerely, Haakon Meland Eriksen |
|
From: Maya <Esc...@ne...> - 2004-01-31 04:25:24
|
Religion has not value in the science realm. Religion is based on faith, and the absolute value of it is the corner stone of any religion. Science on the other hand makes no attempt to apply faith to any of its certainties, or lack of it for that matter. Please leave it at that, don't pursue this issue any longer. I realize this topic is important to you, but it is taking space in a mail group that does not deal with that area of life. I would *very* strongly suggest that you move this line of emails to either a personal [email to email] level or to alt.religion.... news group. In other words, knock it off kids! Have a good one, and if you are going to have more than one.... give me shout, eh! mu...@cb... wrote: >On Wed, 28 Jan 2004, [ISO-8859-1] OROSZI Balázs wrote: > > > >>As I said before, I *didn't* write that mail, so I'm not trying to >>"convert" you to anything. >> >> > >I didn't say you did. I was simply responding to the thing about >prejudice. You can call it prejudice if you want. But I call it reasoned >anti-christianity, and I have a lot of reasons for being against >christianity. As a biologist who has leared from experience that humans >and other animals are really not different from each other except in >certain evolutonarily developed traits, I find christianity's idea that >humans are above all the other animals to be morally repulsive. I also am >not very fond of the fact that christians are always sticking their nose >in places where it doesn't belong, so that we have to fight tooth and nail >just to get anything done or accepted in science because christians who >don't know what they are talking about, and don't understand even basic >biological concepts, have powerful lobbying groups that try to undermine >science. (Did you know that as late as the 1960s, it was still illegal in >some areas for teachers to teach Darwin's concepts of evolution in >classrooms?) > >So call it whatever you want. But I don't call it prejudice when I can >historically document my reasons for being opposed to christianity. > >Mike > > >------------------------------------------------------- >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 > > -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Sami B. <in...@ba...> - 2004-01-31 04:21:32
|
Thanks a lot for the great suggestions i really appreciate it. I'm getting paid tomorow and visiting the book shops. Thanks once again ;D |
|
From: William Mc C. <WIL...@ms...> - 2004-01-31 04:21:20
|
Hi:
I have an "INTERACTIVE" Course (Programming Using C++). It is on 4 =
floppy disks.=20
If you like I would be happy to send it to you.
|
|
From: Nicholas O. R. <exc...@mi...> - 2004-01-31 03:14:05
|
By "well-spaced code" I just meant my code had plenty of white space between
variables, operators, etc. For example, I would call this well-spaced:
for ( int i = 0; i < 6; i++ ) {
float temp = array1[i];
array1[i] = array2[i];
array2[i] = temp;
cout << "I just swapped ";
cout << array1[i] << " and ";
cout << array2[i] << endl;
}
But not this:
for(int i=0;i<6;i++){
float temp=array1[i];
array1[i]=array2[i];
array2[i]=temp;
cout<<"I just swapped ";
cout<<array1[i]<<" and ";
cout<<array2[i]<<endl;
}
It shouldn't affect the behavior of the program at all, aside from bloating
the size of my source files. It's mainly just me being a neat freak.
Nicholas
|
|
From: Alexis U. <au...@te...> - 2004-01-31 03:13:39
|
Hi Samy, I am also starting to learn C++. I found a nice book SAMS ISBN 0-672-32224-2, SAMS Teach Yourself C++. by Jesse Liberty. Even though it = is windows bases, he follow the ANSI compliant. Among these, SAMS has other = lot of book about C++. I hope it will help Regards Alexis ----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Thursday, January 29, 2004 8:13 AM Subject: Dev-cpp-users digest, Vol 1 #1867 - 11 msgs > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Re: OT: A Good C++ Book ? (=3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D= ) > 2. Re: fustrations in c++ (Michael C Urban) > 3. Re: C++ (=3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D) > 4. Re: fustrations in c++ (=3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D) > 5. Re: "delete this" in the class member (Miguel =3D?ISO-8859-1?Q?Ram=3DEDrez_J=3DE1vega?=3D) > 6. Abnormal program termination (Nicholas O. Rawlings) > 7. Re: OT: A Good C++ Book ? (Miguel =3D?ISO-8859-1?Q?Ram=3DEDrez_J=3DE1vega?=3D) > 8. Re: OT: A Good C++ Book ? (Watson Davis) > 9. precise Web protocol knowledge for Unix/C++ (John D Allen, Leveri= dge Systems INC) > 10. Re: OT: A Good C++ Book ? (Reid Thompson) > 11. Re: OT: A Good C++ Book ? (Scott Simontis) > > --__--__-- > > Message: 1 > Date: Wed, 28 Jan 2004 23:02:55 +0100 > From: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...> > To: dev...@li... > Subject: Re: [Dev-C++] OT: A Good C++ Book ? > > Sami Barakat wrote: > > I have been learning C++ for about 4 months now from online free=3D20 > > resources and i feel that i would like to gain a better understanding= o=3D > f=3D20 > > the language and become more advanced at it. I know 4 months isn't mu= ch=3D > =3D20 > > time but I have done programming in PHP before and grasped the basics= o=3D > f=3D20 > > C++ pretty easily. > > I am simply asking people from the list if they could recommend any G= OO=3D > D=3D20 > > C++ programming books that are not Visual Studio, because i would like=3D20 > > to program on Linux as well as Windows without having to do major=3D2= 0 > > changes to the code, so will be using the gcc compiler all the time. = It=3D > =3D20 > > would also be nice if the book could explain how to program using=3D2= 0 > > sockets ( I know they are different for Windows and Linux ). I am doi= ng=3D > =3D20 > > this more as a hobby at the moment and maybe later on take a course at=3D20 > > uni in it. Im not too bothered about how much the book may cost, all i=3D20 > > am really interested in is the clarity of the book and how far i can = go=3D > =3D20 > > with it ( I want to go far :) ). > > Well, the de facto standard book is Bjarne Stroustrup: The C++=3D20 > Programming Language. It has everything about C++, but it can be a bit=3D= 20 > too techy sometimes. But I think that's not a problem for you, as you=3D= 20 > already learned C++, so I recommend that book. It describes OO=3D20 > programming in general with C++, exceptions, classes, etc. - all aspects=3D20 > of C++ in general, and quite well. Also, it describes the STL, and all=3D= 20 > what it has plus how to use it efficiently. As it discusses C++ and STL= =3D20 > generally (presents the C++ standard), it can be considered platform=3D= 20 > independent. > > As you told you learned programming, AND also C++, I think this book=3D= 20 > will be the best for you. You'll find everything inside what you might=3D= 20 > ever need. > > -- > Greetings, > Bal=3DE1zs > > > > --__--__-- > > Message: 2 > Date: Wed, 28 Jan 2004 10:41:40 -0600 (CST) > From: Michael C Urban <mu...@cb...> > To: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...> > Cc: dev...@li... > Subject: Re: [Dev-C++] fustrations in c++ > > On Wed, 28 Jan 2004, [ISO-8859-1] OROSZI Bal=3DE1zs wrote: > > > As I said before, I *didn't* write that mail, so I'm not trying to > > "convert" you to anything. > > I didn't say you did. I was simply responding to the thing about > prejudice. You can call it prejudice if you want. But I call it reasone= d > anti-christianity, and I have a lot of reasons for being against > christianity. As a biologist who has leared from experience that humans > and other animals are really not different from each other except in > certain evolutonarily developed traits, I find christianity's idea that > humans are above all the other animals to be morally repulsive. I also = am > not very fond of the fact that christians are always sticking their nos= e > in places where it doesn't belong, so that we have to fight tooth and n= ail > just to get anything done or accepted in science because christians who > don't know what they are talking about, and don't understand even basic > biological concepts, have powerful lobbying groups that try to undermin= e > science. (Did you know that as late as the 1960s, it was still illegal = in > some areas for teachers to teach Darwin's concepts of evolution in > classrooms?) > > So call it whatever you want. But I don't call it prejudice when I can > historically document my reasons for being opposed to christianity. > > Mike > > > --__--__-- > > Message: 3 > Date: Wed, 28 Jan 2004 23:53:03 +0100 > From: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...> > To: dev...@li... > Subject: Re: [Dev-C++] C++ > > THE OMEGA7 wrote: > > i am actually sorry . i did not know that using > > capitals means shouting at some one. i was ignorant of > > this fact . i hope that u all have forgiven me . > > actually , its not a force to be a christian but > > actually , u do have to make peope to realize the > > existence of the supernatural being (GOD) in > > everything we are doing okay .=3D20 > >=3D20 > > this msg is not to hurt any one . plz .=3D20 > > It is okay, no hurt was done, it's simply... does not belong here,=3D20 > really. This is a programming list after all :) > So lets say all is forgiven, and end this case, okay? > > -- > Greetings, > Bal=3DE1zs > > > > --__--__-- > > Message: 4 > Date: Wed, 28 Jan 2004 18:32:40 +0100 > From: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...> > To: Michael C Urban <mu...@cb...> > Cc: dev...@li... > Subject: Re: [Dev-C++] fustrations in c++ > > Hi all! > > Michael C Urban wrote: > > I didn't say you did. I was simply responding to the thing about > > prejudice. You can call it prejudice if you want. But I call it reaso= ne=3D > d > > anti-christianity, and I have a lot of reasons for being against > > christianity. As a biologist who has leared from experience that huma= ns > > and other animals are really not different from each other except in > > certain evolutonarily developed traits, I find christianity's idea th= at > > humans are above all the other animals to be morally repulsive. I als= o =3D > am > > not very fond of the fact that christians are always sticking their n= os=3D > e > > in places where it doesn't belong, so that we have to fight tooth and= n=3D > ail > > just to get anything done or accepted in science because christians w= ho > > don't know what they are talking about, and don't understand even bas= ic > > biological concepts, have powerful lobbying groups that try to underm= in=3D > e > > science. (Did you know that as late as the 1960s, it was still illega= l =3D > in > > some areas for teachers to teach Darwin's concepts of evolution in > > classrooms?) > >=3D20 > > So call it whatever you want. But I don't call it prejudice when I ca= n > > historically document my reasons for being opposed to christianity. > > I don't think this is the right list to express your hatred against=3D2= 0 > christianity. > If you think science is the privilege of anti-christians, I should point=3D20 > out that a good majority of great scientists was, and even today are=3D= 20 > religious (at least in Europe). Even I study on a religious University,= =3D20 > where we learn molecular and neural biology, and computer science (or IT=3D20 > for short). > You might take a look at the site of my University and read some of it's=3D20 > papers to understand how Fides et Ratio can work together: > > http://www.itk.ppke.hu/index_e.html > > -- > Greetings, > Bal=3DE1zs > > John 3:15 > > > --__--__-- > > Message: 5 > Subject: Re: [Dev-C++] "delete this" in the class member > From: Miguel =3D?ISO-8859-1?Q?Ram=3DEDrez_J=3DE1vega?=3D <mramirez@iua.= upf.es> > Reply-To: mra...@iu... > To: Oleksandr Yermolenko <erm...@ma...> > Cc: dev...@li... > Organization: MTG > Date: 29 Jan 2004 00:18:56 +0000 > > On Wed, 2004-01-28 at 09:04, Oleksandr Yermolenko wrote: > > Hi all, > > Little question about delete operator. > > Can i fall into trouble when making a call "delete this" in the > > class member function ? > > > > What do you mean exactly by "falling into trouble"? Obviously, the firs= t > think one thinks at seeing that is the risk of dangling references. Any > reference to that struct instance will be invalid. And second, valgrind > prompts the following when executing the snippet of code you sent: > > =3D=3D1912=3D=3D Memcheck, a.k.a. Valgrind, a memory error detector for > x86-linux. > =3D=3D1912=3D=3D Copyright (C) 2002-2003, and GNU GPL'd, by Julian Sewa= rd. > =3D=3D1912=3D=3D Using valgrind-2.0.0, a program supervision framework = for > x86-linux. > =3D=3D1912=3D=3D Copyright (C) 2000-2003, and GNU GPL'd, by Julian Sewa= rd. > =3D=3D1912=3D=3D Estimated CPU clock rate is 1610 MHz > =3D=3D1912=3D=3D For more details, rerun with: -v > =3D=3D1912=3D=3D > =3D=3D1912=3D=3D Invalid free() / delete / delete[] > =3D=3D1912=3D=3D at 0x40029DF1: __builtin_delete (in > /usr/lib/valgrind/vgskin_memcheck.so) > =3D=3D1912=3D=3D by 0x40029E1C: operator delete(void*) (in > /usr/lib/valgrind/vgskin_memcheck.so) > =3D=3D1912=3D=3D by 0x804846A: foo::func() (in > /home/bowman/Sandboxes/Experiments/delete_myself) > =3D=3D1912=3D=3D by 0x8048452: main (in > /home/bowman/Sandboxes/Experiments/delete_myself) > =3D=3D1912=3D=3D Address 0xBFFFF517 is on thread 1's stack > =3D=3D1912=3D=3D > =3D=3D1912=3D=3D ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0= from 0) > =3D=3D1912=3D=3D malloc/free: in use at exit: 0 bytes in 0 blocks. > =3D=3D1912=3D=3D malloc/free: 1 allocs, 2 frees, 2 bytes allocated. > =3D=3D1912=3D=3D For a detailed leak analysis, rerun with: --leak-chec= k=3Dyes > =3D=3D1912=3D=3D For counts of detected errors, rerun with: -v > > The most important part is the 'Invalid free' line. I am unsure about > this, but I would assume that it is a synonym of "heap corruption". > > Seems that gcc guys care about people not shooting on their feet ;) > > Miguel. > > PS: Quite offtopic, but does anybody know if valgrind is available as a > cygwin package? > > > > --__--__-- > > Message: 6 > Reply-To: <exc...@mi...> > From: "Nicholas O. Rawlings" <exc...@mi...> > To: <Dev...@li...> > Date: Wed, 28 Jan 2004 15:18:10 -0500 > Subject: [Dev-C++] Abnormal program termination > > Hey there! > > I'm writing a string class as part of a school project. Sometimes when= I > compile the class in a test program and run it, I get an error message > saying "NSTRING.EXE has generated errors and will be closed by Windows. You > will need to restart the program. An error log is being created." If = I > re-compile with the exact same source code, the problem goes away and t= he > test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I > have about 1300 lines of well-spaced code, but it seems unlikely to me that > this could be too much for mingw or for my computer to handle. Any ide= as? > > Nicholas > > > > --__--__-- > > Message: 7 > Subject: Re: [Dev-C++] OT: A Good C++ Book ? > From: Miguel =3D?ISO-8859-1?Q?Ram=3DEDrez_J=3DE1vega?=3D <mramirez@iua.= upf.es> > Reply-To: mra...@iu... > To: dev...@li... > Organization: MTG > Date: 29 Jan 2004 00:05:11 +0000 > > > > Well, the de facto standard book is Bjarne Stroustrup: The C++ > > Programming Language. It has everything about C++, but it can be a bi= t > > too techy sometimes. But I think that's not a problem for you, as you > > already learned C++, so I recommend that book. It describes OO > > programming in general with C++, exceptions, classes, etc. - all aspe= cts > > of C++ in general, and quite well. Also, it describes the STL, and al= l > > what it has plus how to use it efficiently. As it discusses C++ and S= TL > > generally (presents the C++ standard), it can be considered platform > > independent. > > > > You might also find interesting the two volumes by Bruce Eckel ( if you > don't know them already ): > > http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html > > the first volume could be the least interesting for you, but the second > one contains a lot of wisdom. Also the Effective C++, More Effective C+= + > and Effective STL books by the "Man with a Dog" (Scott Meyers), contain > also substantial wisdom. > > To round-up your STL knowledge, the doxygenated gnu's libstdc++ > documentation is, in my opinion, the most practical STL reference > around. You can find it here: > http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.3/index.ht= ml > > And when you reach the "trascending" state you might want to peek > Andrei Alexandrescu's "Modern C++ Design". You won't believe your eyes > when you see the code snippets. > > Miguel. > > > > --__--__-- > > Message: 8 > Date: Wed, 28 Jan 2004 15:25:41 -0800 > From: Watson Davis <wa...@wa...> > Reply-To: Watson Davis <wa...@wa...> > To: dev...@li... > Subject: Re: [Dev-C++] OT: A Good C++ Book ? > > Sunday, January 25, 2004, 9:00:20 AM, you wrote: > > SB> Hi, I have been learning C++ for about 4 months now from online fre= e > SB> resources and i feel that i would like to gain a better understandi= ng > SB> of the language and become more advanced at it. I know 4 months isn= 't > SB> much time but I have done programming in PHP before and grasped the > SB> basics of C++ pretty easily. I am simply asking people from the lis= t if > SB> they could recommend any GOOD C++ programming books that are not Visual > SB> Studio, because i would like to program on Linux as well as Window= s > SB> without having to do major changes to the code, so will be using t= he > SB> gcc compiler all the time. It would also be nice if the book could > SB> explain how to program using sockets ( I know they are different f= or > SB> Windows and Linux ). I am doing this more as a hobby at the moment = and > SB> maybe later on take a course at uni in it. Im not too bothered abo= ut > SB> how much the book may cost, all i am really interested in is the > SB> clarity of the book and how far i can go with it ( I want to go far= :) > SB> ). > > I'm just picking up C++ myself (after years of C, Pascal, Basic, Fortra= n, > Tal, PL/SQL, Cobol, Scobol, Clips, Clipper and... uh... others) and her= e > are the books I've read and liked so far: > > The C++ Programming Language by Stroustrup > It's kinda like the Bible of C++. > > Thinking in C++ by Eckel. > You can either buy this or you can read it online for free. > > Effective C++ by Meyers. > This one cleared up a lot of questions I didn't even know I had. I = was > making all sorts of mistakes with my objects (like not creating copy > constructors and things like that) until I read this book. > > > HTH. > > Watson (the pencil neck) Davis > > > > > --__--__-- > > Message: 9 > Reply-To: <joh...@le...> > From: "John D Allen, Leveridge Systems INC" <joh...@le...> > To: <dev...@li...> > Date: Wed, 28 Jan 2004 16:08:09 -0800 > Subject: [Dev-C++] precise Web protocol knowledge for Unix/C++ > > > We're in desperate need of contract help for c++/ linux or Unix based > application. > > 6 month need .. we have budget for a serious coder.. so the high dollar= s are > there for the right person. We have a new office in San Jose. > > anyways.. may be of help to a group member or a friend > > cheers > John > > John D Allen. CEO & President. > Leveridge Systems INC. > > > > > --__--__-- > > Message: 10 > Date: Wed, 28 Jan 2004 18:54:36 -0500 > From: Reid Thompson <rei...@at...> > Cc: dev...@li... > Subject: Re: [Dev-C++] OT: A Good C++ Book ? > > http://www.deitel.com/books > http://www.deitel.com/books/downloads.html#cppHTP4 > > > Nothing specific to sockets here, but you should be able to find that > easily enough via google. Check these books out the next time you go > into a bookstore. I have the first edition C++ book and it does a good > job of explaining C++ programming. I've seen/looked through a > co-workers java version of their book, and would say the same about it. > You may also be able to view/utilize these books from one of the 'onlin= e > libraries' via a subscription. > > If you can't find the socket info you're looking for, email me back. > > yanked and put from the second link above: > Book Information > > * > > Table of Contents > * > > Preface > * > > Tour of the Book > * > > Errata > * > > Installing the Apache 2.0 Web Server for Microsoft Windows > > Downloads > > Examples (377K ZIP) > > Updated Fig. 22.5: Fig22_05.cpp > > Deitel=AE Deitel=AE Dive-IntoT Series Publications: > > * Dive Into GNU C++ on Linux (460K, DRAFT PDF in ZIP file) > * Dive Into GNU C++ with CygWin on Windows (578K, DRAFT, PDF in ZI= P > file) > * Dive Into Microsoft Visual C++ .NET (1.2MB, DRAFT PDF in ZIP fil= e) > * Dive Into Microsoft Visual C++ 6 (360K PDF) > (Formerly Getting Started With Microsoft Visual C++) > Example used to introduce the debugger > * > > Dive Into Borland C++ 5.5 (123K PDF) > (Formerly Getting Started with Borland C++ 5.5) > > PowerPoint Lecture Slides > > reid > > OROSZI Bal=E1zs wrote: > > Sami Barakat wrote: > > > >> I have been learning C++ for about 4 months now from online free > >> resources and i feel that i would like to gain a better understandin= g > >> of the language and become more advanced at it. I know 4 months isn'= t > >> much time but I have done programming in PHP before and grasped the > >> basics of C++ pretty easily. > >> I am simply asking people from the list if they could recommend any > >> GOOD C++ programming books that are not Visual Studio, because i wou= ld > >> like to program on Linux as well as Windows without having to do maj= or > >> changes to the code, so will be using the gcc compiler all the time. > >> It would also be nice if the book could explain how to program using > >> sockets ( I know they are different for Windows and Linux ). I am > >> doing this more as a hobby at the moment and maybe later on take a > >> course at uni in it. Im not too bothered about how much the book may > >> cost, all i am really interested in is the clarity of the book and h= ow > >> far i can go with it ( I want to go far :) ). > > > > > > Well, the de facto standard book is Bjarne Stroustrup: The C++ > > Programming Language. It has everything about C++, but it can be a bi= t > > too techy sometimes. But I think that's not a problem for you, as you > > already learned C++, so I recommend that book. It describes OO > > programming in general with C++, exceptions, classes, etc. - all aspe= cts > > of C++ in general, and quite well. Also, it describes the STL, and al= l > > what it has plus how to use it efficiently. As it discusses C++ and S= TL > > generally (presents the C++ standard), it can be considered platform > > independent. > > > > As you told you learned programming, AND also C++, I think this book > > will be the best for you. You'll find everything inside what you migh= t > > ever need. > > > > -- > > Greetings, > > Bal=E1zs > > > > > > > > ------------------------------------------------------- > > 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 > > > > > --__--__-- > > Message: 11 > Date: Wed, 28 Jan 2004 21:18:01 -0500 > From: Scott Simontis <age...@co...> > To: mra...@iu..., dev...@li... > Subject: Re: [Dev-C++] OT: A Good C++ Book ? > > I find C++ from the Ground Up to be a great reference. I know > professionals who use it as a reference guide, and I am learning for it. > Make sure you type in all the examples, though. Other than that, Bruce > Eckel has very good books .Bjarne Stroustup's book is good for college > professors and little more I have heard, but haven't read enough of it. > Miguel Ram=EDrez J=E1vega wrote: > > >>Well, the de facto standard book is Bjarne Stroustrup: The C++ > >>Programming Language. It has everything about C++, but it can be a bi= t > >>too techy sometimes. But I think that's not a problem for you, as you > >>already learned C++, so I recommend that book. It describes OO > >>programming in general with C++, exceptions, classes, etc. - all aspe= cts > >>of C++ in general, and quite well. Also, it describes the STL, and al= l > >>what it has plus how to use it efficiently. As it discusses C++ and S= TL > >>generally (presents the C++ standard), it can be considered platform > >>independent. > >> > >> > >> > > > >You might also find interesting the two volumes by Bruce Eckel ( if yo= u > >don't know them already ): > > > >http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html > > > >the first volume could be the least interesting for you, but the secon= d > >one contains a lot of wisdom. Also the Effective C++, More Effective C= ++ > >and Effective STL books by the "Man with a Dog" (Scott Meyers), contai= n > >also substantial wisdom. > > > >To round-up your STL knowledge, the doxygenated gnu's libstdc++ > >documentation is, in my opinion, the most practical STL reference > >around. You can find it here: > >http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.3/index.h= tml > > > >And when you reach the "trascending" state you might want to peek > >Andrei Alexandrescu's "Modern C++ Design". You won't believe your eyes > >when you see the code snippets. > > > >Miguel. > > > > > > > >------------------------------------------------------- > >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 > > > > > > > > > > > --__--__-- > > _______________________________________________ > 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 > > > End of Dev-cpp-users Digest > |
|
From: <ca...@kr...> - 2004-01-31 03:07:12
|
hi Sami,
> Thanks in advance for the suggestions.
hmm.. not a real suggestion but a thought.
besides the kernighan and ritchie I quickly learned some c with the
nitty gritty c book from addisson and wesley.
I looked through some books of this series and the c++ one also looked
very promising for quick lessons and learning.
accompanied by the before mentioned bjarne stroustrup for in depth
informations this should be a good couple.
I also advice for the secure programming cookbook from o'reilly!
gruss
/Christian mailto:ca...@kr...
--
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: Watson D. <wa...@wa...> - 2004-01-31 02:28:07
|
Wednesday, January 28, 2004, 12:18:10 PM, you wrote: NOR> Hey there! NOR> I'm writing a string class as part of a school project. Sometimes when I NOR> compile the class in a test program and run it, I get an error message NOR> saying "NSTRING.EXE has generated errors and will be closed by Windows. You NOR> will need to restart the program. An error log is being created." If I NOR> re-compile with the exact same source code, the problem goes away and the NOR> test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I NOR> have about 1300 lines of well-spaced code, but it seems unlikely to me that NOR> this could be too much for mingw or for my computer to handle. Any ideas? 1300 lines? Uh, no. That's not the problem. If the error is sporadic like that, it's usually a pointer error or some sort of memory overwrite. Missing copy constructors will do that. Modify your program to log error messages to a log file and try to pinpoint where the error is happening. Segment fault errors are sometimes hard to recreate and you'll need to be patient and run lots of test cases. HTH. Watson (the pencil neck) Davis |
|
From: <or...@vp...> - 2004-01-31 00:53:17
|
Noorez Kassam wrote:
> what is the difference between these two
>=20
> typedef struct _Human
> {
> int height;
> }Human;
>=20
> struct Human
> {
> int height;
> };
>=20
>=20
> and in the first one, what does 'Human' mean at the end? In both struct=
s=20
> u can declare a Human type, even without the Human thing at the end in=20
> the first one
These are the remnants of the C world. The difference is only noticable=20
in C. With the second version in the C world you had to write this to=20
declare a variable (a Human struct):
struct Human MyHuman;
However, with the first one (as Human is a new type in this case), you=20
could write this:
Human MyHuman;
So in the C world, you spared the struct prefix at variable declaration,=20
and saved yourself a lot of typing.
In the C++ world, this is no longer relevant, as struct automatically=20
defines a new type (like class).
--
Greetings,
Bal=E1zs
|
|
From: Zonnet <gko...@zo...> - 2004-01-31 00:40:42
|
Hi Nicholas, I think you should look into dependencies. It might happen that some files are compiled and other are not. The linker will not always complain about this. This means that some functions/methods that are called are really of the wrong signature and make a mess. This can cause such crashes. Either: re-compile the whole lot always or try to find out how to properly set-up dependencies. I'm not sure sure about the support for dependencies in DevCpp, can anyone, please, comment? wkr, Gerke Nicholas O. Rawlings wrote: >Hey there! > >I'm writing a string class as part of a school project. Sometimes when I >compile the class in a test program and run it, I get an error message >saying "NSTRING.EXE has generated errors and will be closed by Windows. You >will need to restart the program. An error log is being created." If I >re-compile with the exact same source code, the problem goes away and the >test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I >have about 1300 lines of well-spaced code, but it seems unlikely to me that >this could be too much for mingw or for my computer to handle. Any ideas? > >Nicholas > > > >------------------------------------------------------- >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: Noorez K. <coo...@ho...> - 2004-01-31 00:16:15
|
what is the difference between these two
typedef struct _Human
{
int height;
}Human;
struct Human
{
int height;
};
and in the first one, what does 'Human' mean at the end? In both structs u
can declare a Human type, even without the Human thing at the end in the
first one
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
|
|
From: Miguel <mra...@iu...> - 2004-01-30 23:49:46
|
On Thu, 2004-01-29 at 14:12, Oleksandr Yermolenko wrote: Hi, > The purpose of using this techinque was to implement > self-deleting of object if there are no references left. > Something like that: Hmmm. I am a bit puzzled. Could you tell which one is this OO library? Who must derive from/delegate on CGObject? Or it is a Policy class, that becomes the template parameter of some other class? > But objects can have also "auto" and "static" memory class. > So, this technique must set restriction to construct objects of > such class only dynamically(using "new"). > So, may be you can use "delete this" if you know exactly what you > are doing. But is this allowed in ISO/ANSI C++ ? > This somehow reminds me of the problem with having a std::vector<std::auto_ptr<Foo> >. Remember that serious STL implementations forbid this. > I don't know. But does valgrind group plan to produce some > *STABLE* release even for linux ? As far as i know it is available > only by CVS. > Well, I use it at home with Gentoo (yeah I know, this is not fair play), and at work we have sort of 'patchwork Debian Sarge' and it works quite well also. To say the least I am truly impressed with both the default valgrind 'skin' and the calltree one ( and the humble KCachegrind program beats Rational Purify crap everywhere, every time). I don't aspire to get KDE programs run smoothly on Cygwin ( I tried it and I find quite boring to wait for widgets to repaint each time a dialog box pops up HIDEing and EXPOSEing whatever it has below :( ), but valgrind used from commandline would be a nice asset to add to Win32 debugging tools. > P.S.: Sorry for my english. Mine is worse :) Miguel. |
|
From: Michael C U. <mu...@cb...> - 2004-01-30 23:43:25
|
More then likely, you have a pointer problem somewhere. ie: You forgot to dereference a pointer before writing to it. Errors in pointer use are the single most common cause of of these kinds of errors in Windows. Mike On Wed, 28 Jan 2004, Nicholas O. Rawlings wrote: > Hey there! > > I'm writing a string class as part of a school project. Sometimes when I > compile the class in a test program and run it, I get an error message > saying "NSTRING.EXE has generated errors and will be closed by Windows. You > will need to restart the program. An error log is being created." If I > re-compile with the exact same source code, the problem goes away and the > test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I > have about 1300 lines of well-spaced code, but it seems unlikely to me that > this could be too much for mingw or for my computer to handle. Any ideas? > > Nicholas > > > > ------------------------------------------------------- > 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 W. <dan...@ta...> - 2004-01-30 23:40:27
|
Thanks for the suggestion Scott. It's pointing to the proper bin in Dev-C++ in the compiler options. =20 I tried going through the compiler options and found nothing but the default listed and the G++ directory within the include file. But, I did notice that I had set Dev-C++ to create a Project for C++ so it made a resource file with that in it to link the icon. I took it out and still got the same message. =20 So I decided to try another example from scratch. The hello C. Upon creating a project I chose the OpenGL for the project, linked the glut file, but I am still getting the same message...=20 gcc: Compilation of header file requested gcc: file path prefix `C:\DEV-C_~1\Bin\' never used This is the hello.c example at this link... =20 http://www.opengl.org/resources/code/basics/redbook/index.html Is there a newer version of the glut that I should be using? I went to the Nate Robins site and downloaded the (everything you need to get started with glut) link. Do I need to use the glut32.dll as well? Should it be in the G++ file within the Include directory? =20 Any other ideas would be greatly appreciated,=20 DWW =20 -----Original Message----- From: Scott Simontis [mailto:age...@co...]=20 Sent: Friday, January 30, 2004 3:30 PM To: Daniel Watson Subject: Re: [Dev-C++] OpenGL with Glut blues... There is no order they need to be in. However, I think it helps to sort them out. I list custom headers first, then library headers, then C++ headers, and finnaly C headers. It looks like it is saying that one of the headers has C:\DEV-C_~1\Bin\ in it. All of the headers aren't there. Go to Tools -> Compiler Options. Then, click on the Directories tab.=20 Next, click on the Libraries, C Headers, and C++ Headers sub tabs and make sure C:\Dev-C_~1\Bin or anything like that is in one of those fields. Daniel Watson wrote: > I am trying to compile a basic example from the openGL site,=20 > alpha3d.c.=20 > (http://www.opengl.org/resources/code/basics/redbook/index.html) > =20 > At first I was getting a number of undefined references.=20 > =20 > After going through a number of postings on bloodshed for including=20 > links, then not including some links but try this link, I am down to=20 > two linker errors... > =20 > g++: Compilation of header file requested > g++: file path prefix `C:\DEV-C_~1\Bin\' never used > Here are the two files I have linked in... > C:\Dev-C++\Include\Gl\glut.h > C:\Dev-C++\Lib\glut32.lib > =20 > I have also set the comppiler option to support All ANSI C. > =20 > And here are the include lines at the opening of the script... > =20 > #include <Gl/glut.h> > #include <stdlib.h> > #include <stdio.h> > =20 > Is there a certain order the includes should be in? > I am using glut 3.7.6 > =20 > Thanks in advance, > DWW > =20 |
|
From: <or...@vp...> - 2004-01-30 22:21:34
|
Alessandro Bugatti wrote: > Errors happens for example in the second tutorial RenderPolygon (but no= t in > others like Shadows or Particles). > I use neoengine 0.7.0 , gcc version 3.2 and the build log is the follow= ing Well that's strange. Could you post <Dev-C++>/include/neoengine/base.h=20 so I can take a look at it. That can be the only source of the problem,=20 but with the 0.7.0 devpak it shouldn't be. > P.S. > I'm a Italian teacher and I'd like to learn about game programming. > Actually I use C/C++ to teach in my class and I think could be interest= ing > use game programming to show a very interesting branch of computer > programming. > Can you suggest some reference books about game programming? > Thanks a lot. Well, I haven't read any myself, so I don't really know which one is=20 good and which one isn't. You might visit http://www.fly3d.com.br as=20 they have a book (3D games) which also includes their 3D engine. It is=20 commercial though, and I'm also sure it won't build with Dev-C++, just MS= VC. You might want to join the forums on http://neoengine.sf.net and post a=20 topic to the "Lounge" forum asking for a good book. I'm sure the people=20 there know some good ones. -- Greetings, Bal=E1zs |
|
From: Watson D. <wa...@wa...> - 2004-01-30 21:45:02
|
Thursday, January 29, 2004, 1:45:50 AM, you wrote: PW> By the way, please enlighten me what 'well-spaced code' is, and how that PW> affects the hehaviour of the program. "Well-spaced code" or "Agoracode" is code that has lots of room on the disk. And has its own little pharmaceutical setup. As opposed to "ill-spaced code" or "claustrocode", which resides on a full disk. And is sober. HTH. <joke> Watson (the pencil neck) Davis |
|
From: Oleksandr Y. <erm...@ma...> - 2004-01-30 18:50:05
|
Hello Miguel, Friday, January 30, 2004, 3:22:05 AM, you wrote: > Hmmm. I am a bit puzzled. Could you tell which one is this OO library? > Who must derive from/delegate on CGObject? Or it is a Policy class, that > becomes the template parameter of some other class? This library is GTL. http://www.gtl.kis.ru/bin/GTL10R8.exe This class with "delete this" is the template parameter of pointers "container" class. (see line #33 /Source/Gobject.cpp) This library is based on MFC :-( Therefore i have no plans to use it in real work, but some design concepts of this library are interesting(and may be some of them are dangerous :-) ). > [...], but valgrind > used from commandline would be a nice asset to add to Win32 debugging > tools. Yes, it will be useful tool. Among similar tools under Win32 i have used only CodeGuard (comes with Borland C++ Builder 5 or later(may be)). Valgrind under Win32 can be a good open source replacement. -- Best regards, Oleksandr mailto:erm...@ma... |