RE: [Dev-C++] classes and references
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-05-05 19:49:50
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Carlos Garc?a del Monte > Sent: Monday, May 05, 2003 3:28 PM > To: dev-cpp-users-list > Subject: Re: [Dev-C++] classes and references >=20 >=20 > How in the hell can anyone understand the examples given for=20 > features if=20 > the example program is full of unexplained features??. Well, one can=20 > understand some of such kind of things in the very beginning of the=20 > book. Well, I hope it has at least the currently feature=20 > which is being=20 > explained highlighted. But it's like say to kids," hey: we'll=20 > start to=20 > learn multiplication... let's work with Schr=F6dinger formulae." > Certainly sometimes it can be needed or justified, but I=20 > doubt very much=20 > using templates or vectors is absolutely needed before=20 > explaining them.=20 > Then or you explain them at begin (at least the minimum you use and=20 > then, the 12th chapter in detail or you explain it along the=20 > book, the=20 > features as they are being used in the next chapters and then=20 > at the end=20 > a chapter explaining all about them a a reminder) or you shall try to=20 > avoid examples which need them. Yes you have some right with your side here, but myself what I did not understand in a given example I did not bother about it and waited = patiently until I reach the chapter where it is explained. I did not met many = things like this though. As I said before reading TC++PL you must have finished some introductory book.first. The book is aimed at intermediate programmers. Before = getting to TC++PL I had finished "Teach Yourself C++ in 21 Days" (and before that I = had learned C90 which is not prerequisite for C++, but still with few = exceptions (not C++ "exceptions" :-) ) C90 is subset of C++. > And vectors have nothing to do with templates, although vectors are=20 > implemented as templates. Vectors are a kind of "array"=20 > (forgive my not=20 > technical language) which is safer and more "complex" but also very=20 > powerful, mainly in the dinamic memory management. vector is a template class, part of the standard library. =20 Keep also in mind that serious programming is not easy. :) Fir simple Winblowz GUI applications you need only a small part of the language = (the equivalent of VB, C#, J# etc that is simple classes - I am refering to = .NET, this is what I am learning) but if you want to construct mission = critical code then you must learn many details, for example std::list is very = fast for sorting since when you sort it pointer values are changed, while in vector or built in arrays, the objects are copied (using the copy constructor). The pain is in the details. :) Regards, 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 |