dev-cpp-users Mailing List for Dev-C++ (Page 399)
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: Ioannis V. <iv...@at...> - 2003-04-13 11:40:32
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Khalid El-Kary > Sent: Sunday, April 13, 2003 6:24 AM > To: Dev...@li... > Subject: Re: [Dev-C++] One other minor problem > > > > >//for char**: > >char **str_arr; > >int num_of_elements = 5; > >str_arr = (char**) malloc(num_of_elements*sizeof(char*)); > > > >//the for each element of that array you should malloc > >str_arr[0] = (char*) malloc(10*sizeof(char); > > //sorry meant: > str_arr[0] = (char*) malloc(10*sizeof(char)); > > //note the last bracket *shy* The castings above are completely unnecessary in C. E.g. str_arr = malloc(num_of_elements*sizeof(char*)); In C, a void * is implicitly converted back to any pointer type. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Daniel G. <sp...@ho...> - 2003-04-13 10:46:49
|
For DirectX 8.0 someone had written the .a library files to make the samples compile (from microsoft) but not sure about 9. DirectX never worked for me in the last version of Dev-C++, I had to buy VC++ 6.0. >From: "Shreeharsh S. Ambli" <s_...@ya...> >To: dev...@li... >Subject: [Dev-C++] Hi! Issues relating to DirectX 9.0 and DevC++ >Date: Sat, 12 Apr 2003 15:00:31 -0700 (PDT) > >hi folks! i am sorry if this question has been asked in the wrong forum but >its very important for me. i hv been using DevC++ since its birth and now >plan to continue using it in Game Development too. Now i need to hv access >to a descent/good tutorial on the following... 1. Introduction to COM.2. >DirectX 9.0 Tutorials/Reference Guide. plz suggest me with some >links/online resources/download sites from where i can get the abv two. >ebooks would also be great! thanking u in anticipation. - Shreeharsh S. >Ambli. > > >--------------------------------- >Do you Yahoo!? >Yahoo! Tax Center - File online, calculators, forms, and more _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: Khalid El-K. <kha...@ho...> - 2003-04-13 05:30:27
|
>I was told that I did not need to learn malloc and that other stuff if I >was going to use C++. Is that true? Yes that's right. I don't know why do I stick to them :-) >BTW the compiler errors i used were purposely generated like this: > >char* foo; >int bar; >foo = bar; foo[0] = 'a'; //for instance bar = (int) *foo; foo[1] = 'b'; //also for instance bar = (int) foo[1] // or bar = *(foo+1); >that way the compiler would give me something like: > >invalid conversion from int to char*. > >When I got that I started to wonder because it originally appeared that > >foo would be a pointer to a char. not an item of char*. > Have a good luck ... >Shane Regards, Khalid AL-Kary _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
From: Khalid El-K. <kha...@ho...> - 2003-04-13 03:24:23
|
look below :) >>I also have one other minor problem. >> >>Though I have looked through over 16 different manuals and tutorials, and >>have searched over 50 websites I cannot seem to find out the difference >>between >> >>char* foo; >>char *foo; >>char* *foo; >> >>From my own expirements (purposely generating compiler errors) it >appears >>to me that the first two are identical. They both seem to >declare foo to >>be a variable of type char*. The second seems to >declare foo a pointer >>to type char*. It also appears to me that type >char* is actually a >>char[] of dynamic length because I can get string >functions to work on it >>- just like on char[]. >> >>I have found no confirmation of any of this though. I would appreciate >> >any info anyone has about this. > >Your thoughts are right, but the thing that produces compilation error, >maybe the malloc/realloc/calloc thing associated with them: > >//for char**: >char **str_arr; >int num_of_elements = 5; >str_arr = (char**) malloc(num_of_elements*sizeof(char*)); > >//the for each element of that array you should malloc >str_arr[0] = (char*) malloc(10*sizeof(char); //sorry meant: str_arr[0] = (char*) malloc(10*sizeof(char)); //note the last bracket *shy* > >... > >Hope that helps. > >>Shane Plesner > >Regards, >Khalid Al-Kary > > >_________________________________________________________________ >Add photos to your messages with MSN 8. Get 2 months FREE*. >http://join.msn.com/?page=features/featuredemail > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >for complex code. Debugging C/C++ programs can leave you feeling lost and >disoriented. TotalView can help you find your way. Available on major UNIX >and Linux platforms. Try it free. 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 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: Khalid El-K. <kha...@ho...> - 2003-04-13 03:18:45
|
>I also have one other minor problem. > >Though I have looked through over 16 different manuals and tutorials, and >have searched over 50 websites I cannot seem to find out the difference >between > >char* foo; >char *foo; >char* *foo; > >From my own expirements (purposely generating compiler errors) it >appears >to me that the first two are identical. They both seem to >declare foo to >be a variable of type char*. The second seems to >declare foo a pointer to >type char*. It also appears to me that type >char* is actually a char[] of >dynamic length because I can get string >functions to work on it - just >like on char[]. > >I have found no confirmation of any of this though. I would appreciate > >any info anyone has about this. Your thoughts are right, but the thing that produces compilation error, maybe the malloc/realloc/calloc thing associated with them: //for char**: char **str_arr; int num_of_elements = 5; str_arr = (char**) malloc(num_of_elements*sizeof(char*)); //the for each element of that array you should malloc str_arr[0] = (char*) malloc(10*sizeof(char); ... Hope that helps. >Shane Plesner Regards, Khalid Al-Kary _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
From: Ioannis V. <iv...@at...> - 2003-04-13 02:05:59
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Shane Plesner > Sent: Sunday, April 13, 2003 4:31 AM > To: dev...@li... > Subject: [Dev-C++] One other minor problem >=20 >=20 >=20 > I also have one other minor problem. >=20 > Though I have looked through over 16 different manuals and=20 > tutorials, and have searched over 50 websites I cannot seem=20 > to find out the difference between >=20 > char* foo; > char *foo; > char* *foo; >=20 > >From my own expirements (purposely generating compiler=20 > errors) it appears to me that the first two are identical. =20 Yes they are. > They both seem to declare foo to be a variable of type char*.=20 > The second seems to declare foo a pointer to type char*. The third. Yes, it is a pointer to char *. Or a pointer to pointer to = char. > It=20 > also appears to me that type char* is actually a char[] of=20 > dynamic length because I can get string functions to work on=20 > it - just like on char[]. char * points to a char variable. This variable can be part of a = sequence of chars (an array) either on the free store either in the automatic = storage. But it can also be alone. 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 Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Shane P. <ge...@my...> - 2003-04-13 01:31:00
|
I also have one other minor problem. Though I have looked through over 16 different manuals and tutorials, and have searched over 50 websites I cannot seem to find out the difference between char* foo; char *foo; char* *foo; From my own expirements (purposely generating compiler errors) it appears to me that the first two are identical. They both seem to declare foo to be a variable of type char*. The second seems to declare foo a pointer to type char*. It also appears to me that type char* is actually a char[] of dynamic length because I can get string functions to work on it - just like on char[]. I have found no confirmation of any of this though. I would appreciate any info anyone has about this. Shane Plesner _______________________________________________ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.com |
|
From: Shane P. <ge...@my...> - 2003-04-13 00:53:02
|
Hi, My alias is Gebnar, I am new to this mailing list.
I know this is probably a stupid question.
The Dev-cpp help file says:
"To open the Resource Editor, click on the Project menu, then on 'Edit resource file'."
My version of Dev-cpp (4.9.8.0) is the latest but I cannot find this menu command, nor can I find a resource editor anywhere. I have learned a little about doing it by hand but an editor would be nice!
If anyone knows anything about this please send me whatever info you have.
Sincerely,
Gebnar
_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com
|
|
From: Daniel K. O. <dan...@ya...> - 2003-04-12 23:46:49
|
> We can hardly avoid knowing about the conio package since this list has > questions about it every 2-4 weeks. LOL It's more like 2-4 times per week. :D Daniel K. O. |
|
From: Szathmary L. <sz...@de...> - 2003-04-12 23:00:21
|
Hi! In Borland C++ 3.1 there was a function called searchpath(), it was in dir.h. Where is it in Dev-C++? I want to compile an old DOS program of mine under Win. Thanks, Laszlo |
|
From: Shreeharsh S. A. <s_...@ya...> - 2003-04-12 22:00:37
|
hi folks! i am sorry if this question has been asked in the wrong forum but its very important for me. i hv been using DevC++ since its birth and now plan to continue using it in Game Development too. Now i need to hv access to a descent/good tutorial on the following... 1. Introduction to COM.2. DirectX 9.0 Tutorials/Reference Guide. plz suggest me with some links/online resources/download sites from where i can get the abv two. ebooks would also be great! thanking u in anticipation. - Shreeharsh S. Ambli. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more |
|
From: Ioannis V. <iv...@at...> - 2003-04-12 21:56:55
|
> -----Original Message----- > From: jose isaias cabrera [mailto:ji...@fr...] > Sent: Sunday, April 13, 2003 1:36 AM > To: Ioannis Vranos; Dev...@li... > Subject: Re: RE: Re[2]: [Dev-C++] [q] Does C++ promote bad > programming? > > > Hello, Ioannis Vranos, > > On 2003-04-12, 22:34:00 you wrote: > > >> Let's not forget the real reason why we use c/c++: speed. :-) > > > >Not only. I use it also because it is the best general > purpose programming > >language. :) > > Well, the "best general purpose programming", no. Why? (Ioannis grabs his sword). :) Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Shayne K. <err...@ne...> - 2003-04-12 21:40:19
|
This might have been mentioned before, but just in case, here is my view on C++. First of all, C++ is a tool. And as any tool, you use it appropriately with the problem. I think the first mistake new programmers make is the 1 tool fits all paradigm. Though, this is not specific to C++. The other thing I see is poor design. This is easy to do in C++ since you can implement your application however you want. There is nothing stopping you from not using classes/inheritence/etc. Though, this brings me to another point, mostly about not using the tools in C++ to its full advantage. C++ has many useful tools, STL, Templates, multiple inheritence, Strings, exceptions, etc. And finally, take a C coder and make them write a C++ application. I remember when I did this and I just wrote my C++ applications as C. They compiled, but again, they didn't use C++ to its full advantage. I think over all if you use good design and write a C++ app correctly, the efficiency will be the same as writing it in C (for example). If you want to learn C++, learn it. But take an OO methods course like intro to objects. - shayne http://www.shaynekasai.com On Sat, 12 Apr 2003, Khalid El-Kary wrote: > read about multiple inheritance below. > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...] On Behalf Of nada > > > Sent: Saturday, April 12, 2003 4:20 PM > > > To: dev...@li... > > > Subject: [Dev-C++] [q] Does C++ promote bad programming? > > > > > > > > > I'm interested in the opinions of the group. > > > > > > Is there anything in the C++ language which you feel inherently can > > > contribute to new programmers developing bad programming > > > habits? Is C++ an > > > > > >A programming language can't protect you from bad programming(!). For > >example one may have the bad habbit to do: > > > > > > > >template<class T> > >T add(T a, T b) > >{ > > T c1=a, T c2=b; > > > > while(c1/a<2 && c2/b<2) > > c1++, c2++; > > > > return a+b; > >} > > > > > >int main() > >{ > > int x=1, y=2; > > > > int z=add(x,y); > >} > > > > > > > > > > > inappropriate language for an introductory course, a course that is > > > designed to introduce learners to programming concepts, not > > > necessarily > > > prepare them for a programming career? > > > > > >In the contrary. C++ supports 4 paradigms and each one *well* and with > >optimal space/time efficiency. For example, in the OO paradigm it supports > >multiple inheritance. Few other languages do that (personally I do not know > >any other but I assume there is). > > Python ... http://www.python.org > > > > > >So for example if you want to teach all the concepts of Object Oriented > >programming, C++ is a perfect candidate. > > > > > > > > > > > >Ioannis Vranos > > > >* Programming pages: http://www.noicys.freeurl.com > >* Alternative URL 1: http://run.to/noicys > >* Alternative URL 2: http://www.noicys.cjb.net > > > > > >Anti-racism movement: http://www.positive-youthfoundation.org > >Iraq Peace Pledge: http://www.peacepledge.org > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > >for complex code. Debugging C/C++ programs can leave you feeling lost and > >disoriented. TotalView can help you find your way. Available on major UNIX > >and Linux platforms. Try it free. 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 > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. 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: Khalid El-K. <kha...@ho...> - 2003-04-12 21:12:31
|
read about multiple inheritance below.
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf Of nada
> > Sent: Saturday, April 12, 2003 4:20 PM
> > To: dev...@li...
> > Subject: [Dev-C++] [q] Does C++ promote bad programming?
> >
> >
> > I'm interested in the opinions of the group.
> >
> > Is there anything in the C++ language which you feel inherently can
> > contribute to new programmers developing bad programming
> > habits? Is C++ an
>
>
>A programming language can't protect you from bad programming(!). For
>example one may have the bad habbit to do:
>
>
>
>template<class T>
>T add(T a, T b)
>{
> T c1=a, T c2=b;
>
> while(c1/a<2 && c2/b<2)
> c1++, c2++;
>
> return a+b;
>}
>
>
>int main()
>{
> int x=1, y=2;
>
> int z=add(x,y);
>}
>
>
>
>
> > inappropriate language for an introductory course, a course that is
> > designed to introduce learners to programming concepts, not
> > necessarily
> > prepare them for a programming career?
>
>
>In the contrary. C++ supports 4 paradigms and each one *well* and with
>optimal space/time efficiency. For example, in the OO paradigm it supports
>multiple inheritance. Few other languages do that (personally I do not know
>any other but I assume there is).
Python ... http://www.python.org
>
>
>So for example if you want to teach all the concepts of Object Oriented
>programming, C++ is a perfect candidate.
>
>
>
>
>
>Ioannis Vranos
>
>* Programming pages: http://www.noicys.freeurl.com
>* Alternative URL 1: http://run.to/noicys
>* Alternative URL 2: http://www.noicys.cjb.net
>
>
>Anti-racism movement: http://www.positive-youthfoundation.org
>Iraq Peace Pledge: http://www.peacepledge.org
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
>for complex code. Debugging C/C++ programs can leave you feeling lost and
>disoriented. TotalView can help you find your way. Available on major UNIX
>and Linux platforms. Try it free. 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
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
|
|
From: Ioannis V. <iv...@at...> - 2003-04-12 19:35:09
|
> -----Original Message----- > From: jose isaias cabrera [mailto:ji...@fr...]=20 > Sent: Saturday, April 12, 2003 10:15 PM > To: Ioannis Vranos; Dev...@li... > Subject: Re: Re[2]: [Dev-C++] [q] Does C++ promote bad programming? >=20 >=20 >=20 >=20 > From: "Ioannis Vranos" <iv...@at...> said, >=20 > > > IMHO for such course better is Java - it has all benefits=20 > of OOP but > > > whithout pointers and with garbage collector and tables boundary > > > checking - which (for beginners) is very important...=20 > IMHO learning > > > C++ (as a faster language) should be done AFTER Java course... > > > > > > Java uses pointers although it is somewhat transparent to the user. > > > > > > You are not forced to use pointers in C++. You use them if=20 > you want them. >=20 > Let's not forget the real reason why we use c/c++: speed. :-)=20 Not only. I use it also because it is the best general purpose = programming language. :) > It's not for > its easy way of coding programs. So, why wouldn't you use=20 > pointer if you're > using c/c++? I did not say we should not use pointers. Of course we should where it = makes sense. I just answered to the claims that in Java it is easier or safer = to do things than in C++. Because it isn't. C++ implements all the = supported paradigms well. The main misconception many people have regarding C++, is that it is = unsafe because they use its low level parts when it is entirely unnecessary. Another crucial misconception is that many peope think programming is = easy and find facilities which exist to enable certain things as "difficult", missing the techniques that they exist to support. A very useful URL for that is: http://www.itworld.com/AppDev/710/lw-02-stroustrup/page_1.html 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 Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: jose i. c. <ji...@fr...> - 2003-04-12 19:15:17
|
From: "Ioannis Vranos" <iv...@at...> said, > > IMHO for such course better is Java - it has all benefits of OOP but > > whithout pointers and with garbage collector and tables boundary > > checking - which (for beginners) is very important... IMHO learning > > C++ (as a faster language) should be done AFTER Java course... > > > Java uses pointers although it is somewhat transparent to the user. > > > You are not forced to use pointers in C++. You use them if you want them. Let's not forget the real reason why we use c/c++: speed. :-) It's not for its easy way of coding programs. So, why wouldn't you use pointer if you're using c/c++? jose |
|
From: Ioannis V. <iv...@at...> - 2003-04-12 19:06:22
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Saturday, April 12, 2003 9:42 PM > To: Ioannis Vranos > Cc: Dev...@li... > Subject: RE: Re[2]: [Dev-C++] [q] Does C++ promote bad programming? > > > It is very, very tough to write a C or C++ program without > any pointers. > > Try writing a hello world program :-) > > I was about to supply one in this mail, when I realized that > I couldn't > even get past main() without adding a pointer to any command line > arguments... In that sense, in all programming languages there is no way to avoid pointers. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Ioannis V. <iv...@at...> - 2003-04-12 19:04:45
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf Of Zodiaq > Sent: Saturday, April 12, 2003 8:45 PM > To: Dev...@li... > Subject: Re[4]: [Dev-C++] [q] Does C++ promote bad programming? >=20 >=20 >=20 > Avoiding pointers with C++ is hard thing, without dynamic storage and > dynamic object generation (long lasting) programs are not so > interesting... Java on the other hand uses pointers only. > and what is more important C++ is hard becouse it mades > not boundary checking ? > - it's because it aims for speed... and using > std::vector at an introductory course is neither good thing... at very > beginning you might be foced to answer what is std, namespace, vector, > template etc... this is all very confusing at the begining, and > without that people have many problems with programs in C++/C crushing > because some memory was written where it shouldn't No, you seem to miss all the safety C++ provides. If you want range = checked access to vector you can use vector::at(). With C++ very safe, = bullef-proof code can be written, simply by using the standard library facilities and avoiding the use of low level stuff, direct memory = allocation/deallocation, casts, macros, void *s. > - Java at first > such attempt stops! :) Java merely is a subset of C++ possibilites. Which is not necessarily bad. > Which, for beginners to OOP is very important! In C++ one can learn whatever he needs to learn.=20 > This forces good habbits as cerufully checking where last iterations > of loops will be writing to and many others... I'm talking here from > my point of view - my road to OOP was like this: > Basic (not even on PC class) > C > C++ and Java (at studies teachers somehow decided to combine=20 > these two) >=20 > and now I stick to C++ (with every aspect it offers - OOP, exceptions, > multithreading [this is more OS dependent, I know]) but I must say > that (for me) learning Java was a very good thing - at the time I > thought I shouldn't be doing that! I thought on high level programming > language is more than enough! But from this point of view, from > current time, I must say it was very usefull experience... All right, > stop chatting, last thing - Java is not JUST simple, it also makes > things simple... it is not only web directed, you can make web applets > in it very easly, but you can make programs that have NOTHING to do > with web... I don't use it because it is interpreted so not nearly as > fast as C++... Java is good for small programs that have to be run on > many platforms, but for big projects that need to be very fast... Myself I do not like Java (I am using the most soft words). There are = many reasons, but I do not want to begin a flame now. :) An interesting URL = to check is: http://www.stlport.org/resources/StepanovUSA.html >=20 > That's what I thing - IMO Java is very good start... On the other hand I believe it is one of the worst (knowing at the same = time that there are many that disagree with me). 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 Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Per W. <pw...@ia...> - 2003-04-12 18:44:55
|
It is very, very tough to write a C or C++ program without any pointers. Try writing a hello world program :-) I was about to supply one in this mail, when I realized that I couldn't even get past main() without adding a pointer to any command line arguments... /Per W On Sat, 12 Apr 2003, Ioannis Vranos wrote: > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf Of Zodiaq > > Sent: Saturday, April 12, 2003 5:36 PM > > To: Dev...@li... > > Subject: Re[2]: [Dev-C++] [q] Does C++ promote bad programming? > > > > > > Hello Ioannis and all Dev-C++ users, > > > > Saturday, April 12, 2003, 4:07:54 PM, Ioannis wrote as follows: > > > > IV> So for example if you want to teach all the concepts of > > Object Oriented > > IV> programming, C++ is a perfect candidate. > > > > IMHO for such course better is Java - it has all benefits of OOP but > > whithout pointers and with garbage collector and tables boundary > > checking - which (for beginners) is very important... IMHO learning > > C++ (as a faster language) should be done AFTER Java course... > > > Java uses pointers although it is somewhat transparent to the user. > > > You are not forced to use pointers in C++. You use them if you want them. > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > Anti-racism movement: http://www.positive-youthfoundation.org > Iraq Peace Pledge: http://www.peacepledge.org > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-04-12 18:40:33
|
No, of course we know how to set colors for text output. It's just that
there is no STANDARD library functions for doing it. The conio package is
definitely not standard, so you can't just move your code to another
compiler and/or operating system and expect it to work.
We can hardly avoid knowing about the conio package since this list has
questions about it every 2-4 weeks.
/Per W
On Sat, 12 Apr 2003, Louis Godio wrote:
> Damien,
> Thank You, I compiled and ran your example under the DevC++ IDE.
> It works wery well. It seems that some of the DevC++ C experts
> are unaware of this.
> I suspect you also know how to change fonts as well. An example of
> this would also help many of us who are told this can't be done.
>
>
> From: "Damien Alleyne" <g_...@ho...>
> Subject: Re: [Dev-C++] Setting text colour Date: Sat, 12 Apr 2003
> 09:20:05 -0400
> Well Louis,
>
> I was surprised by so many people saying that it couldn't be done
> anymore.
> The last time I did text colouring was last year. Anyway, this sample
> works on my
> system which is a P4 running WinXP. It worked when I was runing WinME.
> Tell me if It works on your system.
>
>
> #include <conio.c>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main(void)
> {
> printf("Hmmmm. Lets try to change these colors up.\n");
> textcolor(YELLOW);
> printf("This line should be blue\n");
> textcolor(RED);
> printf("This line should be red.\n");
>
> printf("Anyway. Later Guys\n");
> system("PAUSE");
> return 0;
> }
>
>
>
> --- Damien Alleyne <g_...@ho...> wrote:
>
> ---------------------------------
>
>
>
>
>
>
> Take a look at the conio.h header file in the Dev-C++ include directory.
> There are functions in there for console text formatting. Make sure to
> include the conio.c as an additional command while calling the compiler or
> simple include it instead of conio.h.
>
> Original G
> ----Original Message Follows---- From: "Dany P. Wu" To: Subject: [Dev-C++]
> Setting text colour Date: Sat, 12 Apr 2003 21:06:17 +1200 Hi everyone, I'm
> just writing console programs at the moment, and was wondering if there's
> a way of setting foreground and background colour of text? Is this
> possible using standard C++ libraries? Cheers, Dany. -- This mail is a
> natural product. The slight variations in spelling and grammar enhance its
> individual character and beauty and in no way are to be considered flaws
> or defects. ------------------------------------------------------- This
> SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for
> complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. 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
>
> ---------------------------------
> The new MSN 8: smart spam protection and 2 months FREE*
> -------------------------------------------------------This SF.net email
> is sponsored by: Etnus, makers of TotalView, The debugger for complex
> code. Debugging C/C++ programs can leave you feeling lost and disoriented.
> TotalView can help you find your way. Available on major UNIX and Linux
> platforms. Try it free.
> www.etnus.com_______________________________________________Dev-cpp-users
> mailing lis...@li... UNSUBSCRIBE:
> http://www.noicys.cjb.net/devcpp/ub.htmhttps://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. 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...@at...> - 2003-04-12 17:53:18
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Defiant Heretic > Sent: Saturday, April 12, 2003 8:38 PM > To: dev...@li... > Subject: [Dev-C++] Re: [q] Does C++ promote bad programming? > > > If you don't need to cover OOP, I'd suggest teaching plain C > first. It's > much simpler, and this will help the students learn some of > the nuances of > the language before moving to C++. Although that is the path I followed myself, C is not prerequisite for C++, not to mention that they are very different languages right now. One can learn procedural programming in C++ directly and more easily than in C by using the standard library facilities. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Zodiaq <zo...@ac...> - 2003-04-12 17:45:46
|
Hello iad929 and all Dev-C++ users, Saturday, April 5, 2003, 11:18:48 PM, iad929 wrote as follows: i> I little disagree with you here. C++ can be used for an introductory course i> with avoiding pointers. Java is simple but it is web directed. Avoiding pointers with C++ is hard thing, without dynamic storage and dynamic object generation (long lasting) programs are not so interesting... and what is more important C++ is hard becouse it mades not boundary checking - it's because it aims for speed... and using std::vector at an introductory course is neither good thing... at very beginning you might be foced to answer what is std, namespace, vector, template etc... this is all very confusing at the begining, and without that people have many problems with programs in C++/C crushing because some memory was written where it shouldn't - Java at first such attempt stops! Which, for beginners to OOP is very important! This forces good habbits as cerufully checking where last iterations of loops will be writing to and many others... I'm talking here from my point of view - my road to OOP was like this: Basic (not even on PC class) C C++ and Java (at studies teachers somehow decided to combine these two) and now I stick to C++ (with every aspect it offers - OOP, exceptions, multithreading [this is more OS dependent, I know]) but I must say that (for me) learning Java was a very good thing - at the time I thought I shouldn't be doing that! I thought on high level programming language is more than enough! But from this point of view, from current time, I must say it was very usefull experience... All right, stop chatting, last thing - Java is not JUST simple, it also makes things simple... it is not only web directed, you can make web applets in it very easly, but you can make programs that have NOTHING to do with web... I don't use it because it is interpreted so not nearly as fast as C++... Java is good for small programs that have to be run on many platforms, but for big projects that need to be very fast... That's what I thing - IMO Java is very good start... i> Mohammed -- regards, Zodiaq |
|
From: Defiant H. <he...@er...> - 2003-04-12 16:38:09
|
If you don't need to cover OOP, I'd suggest teaching plain C first. It's much simpler, and this will help the students learn some of the nuances of the language before moving to C++. |
|
From: Louis G. <lg...@ya...> - 2003-04-12 15:24:00
|
Damien,
Thank You, I compiled and ran your example under the DevC++ IDE.
It works wery well. It seems that some of the DevC++ C experts
are unaware of this.
I suspect you also know how to change fonts as well. An example of
this would also help many of us who are told this can't be done.
From: "Damien Alleyne" <g_...@ho...>
Subject: Re: [Dev-C++] Setting text colour Date: Sat, 12 Apr 2003
09:20:05 -0400
Well Louis,
I was surprised by so many people saying that it couldn't be done
anymore.
The last time I did text colouring was last year. Anyway, this sample
works on my
system which is a P4 running WinXP. It worked when I was runing WinME.
Tell me if It works on your system.
#include <conio.c>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Hmmmm. Lets try to change these colors up.\n");
textcolor(YELLOW);
printf("This line should be blue\n");
textcolor(RED);
printf("This line should be red.\n");
printf("Anyway. Later Guys\n");
system("PAUSE");
return 0;
}
--- Damien Alleyne <g_...@ho...> wrote:
---------------------------------
Take a look at the conio.h header file in the Dev-C++ include directory.
There are functions in there for console text formatting. Make sure to
include the conio.c as an additional command while calling the compiler or
simple include it instead of conio.h.
Original G
----Original Message Follows---- From: "Dany P. Wu" To: Subject: [Dev-C++]
Setting text colour Date: Sat, 12 Apr 2003 21:06:17 +1200 Hi everyone, I'm
just writing console programs at the moment, and was wondering if there's
a way of setting foreground and background colour of text? Is this
possible using standard C++ libraries? Cheers, Dany. -- This mail is a
natural product. The slight variations in spelling and grammar enhance its
individual character and beauty and in no way are to be considered flaws
or defects. ------------------------------------------------------- This
SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for
complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. 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
---------------------------------
The new MSN 8: smart spam protection and 2 months FREE*
-------------------------------------------------------This SF.net email
is sponsored by: Etnus, makers of TotalView, The debugger for complex
code. Debugging C/C++ programs can leave you feeling lost and disoriented.
TotalView can help you find your way. Available on major UNIX and Linux
platforms. Try it free.
www.etnus.com_______________________________________________Dev-cpp-users
mailing lis...@li... UNSUBSCRIBE:
http://www.noicys.cjb.net/devcpp/ub.htmhttps://lists.sourceforge.net/lists/listinfo/dev-cpp-users
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
|
|
From: Ioannis V. <iv...@at...> - 2003-04-12 15:18:16
|
> -----Original Message----- > From: iad929 [mailto:ia...@jo...] > Sent: Sunday, April 06, 2003 12:21 AM > To: Ioannis Vranos; dev...@li... > Subject: Re: [Dev-C++] [q] Does C++ promote bad programming? > > > > In the contrary. C++ supports 4 paradigms and each one > *well* and with > > optimal space/time efficiency. For > > What do you mean by 4 paradigms? C++ supports 4 paradigms: - Procedural paradigm (functions) - Modular paradigm (namespaces) - Object Oriented paradigm - Generic programming paradigm (templates) Each paradigm is supported well (completely) with optimal space/time efficiency. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |