Re: [Dev-C++] newbie questions without answer
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Carlos d. M. <cg...@wo...> - 2002-08-13 09:55:41
|
> > Just for the record, i do not like the approach you are using, it is > too C-style. > > Agree, with such things is better use classes and so, always use C++. > If you want, at first times you can start from structs if that helps > you, and then pass to classes. But the best is practice classes, and > practice and practice... And don't kill your computer. > > What kind of abnormal termination. assert()? > > The assert of the overloaded []. > I must mention that C++ provides already a string type defined in > <string>. So why do you bother? :) > > Just an example of the book with which Mr Senen is working for learn > (C/)C++. Which has a part that although being C++ shows C things, this > is used for introduce the reader to objects, overloading and such > things. It is almost the "How to Program C/C++" (same authors) with > tiny modifications because the title says it is more oriented to C++. > But the truth is that there is only one book, but they make three > parts: about 20 pages of only C for the "how to C/C++", 20 for "C++ > how to" and about 1200 for both. A way to sell two books when they > have only one, in essence. This book is which I found better for learn > programming (but I couldn't find many), and well, it seems I'm > learning, but with no few errors (I mean I have more than few errors), > I got the spanish translation (as said in a previous message) > translated by someone which should go to first course to learn > speaking, and perhaps due to his translation or the original, I found > it has some ambiguities, and misleading things. They don't pay enough > attention to a couple of pointer things, and the treatment of bitwise > operation is misleading: they say something like "usually these > operations are performed over ints and chars", but it is not exact, > because it makes think that it usually is used with such vars, but > could be used with doubles, longs... and not, they only work with ints > and chars, they must be used with ints and chars. Just like saying > "people usually flies with planes or helicopters", usually?, try to > fly yourself with a red cape, and then tell me if the word is only > usually. And in the "how to C/C++" the teaching of memory allocation > is awful (the C functions there, malloc, calloc, realloc and free), it > sem harder than quantum physics but is easier than 2+2 (or perhaps my > english is the cause). > |