On Tue, Mar 20, 2012 at 02:15:36PM -0700, Leslie S Satenstein wrote: > Well, I have a request for some help with my learning C++. For 25 years I > have been developing code in C, and now I have started with C++. > The grammar, is not my hangup, it is with classes, inheritance, the this > pointer and inheritances and good practices. > > > Can someone recommend a course I could audit, or of a self study course they > could recommend? I was at the library and while there are about a hundred > C++ books, > I seem to have hangups for inheritance, polymorphism, and multiple > inheritance. > > > My objective is to learn to develop some applications using the QT > framework. I noted that some critical QT classes have in excess of 50 > methods. > > > I would even pay a lunch, a few beers, or a supper for a person who could > help me out by answering some questions by email or phone, at that person's > convenience.
It's below my normal consulting rates, but I'm game. > > I promise to not over commit anyone who helps. I am using a Java book at > the same time to get familiar with this language. > > I understand that most students learn about classes via Java first. > > > The tutorials on the web miss the human touch. > > I have questions such as two of the following. > > If I can do sizeof(structure) to get its size in memory. Can I do the same > of a class. sizeof(class) ? I was implementing C+ about 20 years ago. At that time the words "class" and "struct" were synonymous. The compiler distinguished what we'd call classes by whether any methods were defined. > > One other question. In C, I can do a memset(structure address, 0, > sizeof(structure)), and that will zap the structure. > Can I put the structure within a class and do the same? I think I am not able to do the memset(?class,0 sizeof(class)) You can't zap the class. There are pointers to system information in the object -- namely a pointer to the actual functions that implement virtual methods, for one thing. But I see n problem in zapping a field of the class, even if that field is a structure. You could have trouble zapping a structure that contains an class object, though, because the object would be destroyed without its destructor being called. > > clearout because of private variables. > > > I want to develop expertise in QT and with Boost libraries and SDK. > > Once I get over this hurdle, I will be home free. Development environment is > 32 or 64 bit Linux. > > > Please give me some feedback, recommendations and or other, to respond to > my needs. > > > > ------------------ > > > Regards > > Leslie > > Mr. Leslie Satenstein > 50 years in IT and going strong. > Yesterday was a good day, today is a better day, > and tomorrow will be even better. > > mailto:[email protected] > alternative: [email protected] > www.itbms.biz > _______________________________________________ > mlug mailing list > [email protected] > https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca _______________________________________________ mlug mailing list [email protected] https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
