Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programming: Principles and Practice Using C++, 2nd Edition: Working Gui library (chapter 12-16) + Errata (my version)

61 views
Skip to first unread message

Christiano

unread,
Sep 12, 2017, 11:10:09 AM9/12/17
to

Daniel

unread,
Sep 12, 2017, 11:27:05 AM9/12/17
to
On Tuesday, September 12, 2017 at 11:10:09 AM UTC-4, Christiano wrote:
>
> In the chapter about Numerics, use this:
> http://stroustrup.com/Programming/PPP2code/Matrix11.h

typedef long Index; // I still dislike unsigned

Flibblesticks!

Mr Flibble

unread,
Sep 12, 2017, 12:21:38 PM9/12/17
to
Unsigned types pervade standard C++ so you "disliking" them is irrelevant.

/Flibble


Mr Flibble

unread,
Sep 12, 2017, 12:22:17 PM9/12/17
to
On 12/09/2017 16:09, Christiano wrote:
> Errata (my version) is here:
> https://chcpp.info/index.php/2017/09/12/programming-principles-and-practice-using-c-2nd-edition-bugs/
>
>
> Working library for chapter 12-16
> https://chcpp.info/index.php/2017/07/02/programming-principles-and-practice-using-c-chapter-12-to-16-how-to-compile/
>
> The official library[1] has a lot of problems. In my opinion the library
> above is the best alternative at the moment.

Stroustrup's "GUI library" is toy and it is not meant to be anything
other than toy.

/Flibble

Christiano

unread,
Sep 12, 2017, 1:49:24 PM9/12/17
to
I need to explain it better.
When the student reaches the chapter 12, he faces the following situation: He can't even compile the first example, because there are a lot of
problems with the official library of PPP second edition.
I believe that there was some mistake when the files were uploaded, example: It was uploaded old files, not the latest files.
There are workarounds for this situation, example:
https://groups.google.com/forum/#!topic/ppp-public/BtlzdWGuQpQ

But it was not sufficient. So, I got the library for 1st edition (that works) and worked on it in order to match with the book 2nd edition and it
being able to compile in several platforms as FreeBSD, Linux, Windows, MacOSX.
My work is a result of

initial Stroustrup 1st edition library +
Code printed in the book 2nd edition +
Bug corrections +
Corrections to compile in several platforms

It would be unfair to say that it is my library, when I say "my library", it is just a way to separate things better. I prefer call it of Ch12new library.

Of course, the Stroustrup GUI library is not a General professional GUI library like FLTK, Qt, WxWidgets, but nobody is saying that. It is only a good
manner that the author found in order to introduces the students to topics like:
- callbacks
- polymorphism
- inheritance
- interfaces
In this way, the student can create Shapes which inherits class Shape and has a virtual method "draw_lines" in order to "system" draw the Student's
shape on the screen using an uniform interface receiving Shape*.

When I said "have a lot of problems" I'm trying to say that it simply does not compile or it doesn't match with the book 2nd edition.

Daniel

unread,
Sep 12, 2017, 3:47:40 PM9/12/17
to
On Tuesday, September 12, 2017 at 12:21:38 PM UTC-4, Mr Flibble wrote:
> On 12/09/2017 16:23, Daniel wrote:
>
> Unsigned types pervade standard C++ so you "disliking" them is irrelevant.
>
Me? You mean Stroustrup disliking them.

Daniel

Mr Flibble

unread,
Sep 12, 2017, 4:03:54 PM9/12/17
to
Appeal to authority is a logical fallacy.

/Flibble

Daniel

unread,
Sep 12, 2017, 4:11:23 PM9/12/17
to
Me? Appeal? Making statements that don't make sense is also a fallacy.



Alf P. Steinbach

unread,
Sep 13, 2017, 2:09:09 AM9/13/17
to
0 new messages