Reply To: C++ Programming

Ed P
Forumite Points: 16,933

Struct was an old C concept which I guess evolved into the ‘Class’ concept. Iirc I used to use it a lot as a handy way of getting out of a tangle of pointers by defining a pointer to an instance of a structure. (bit like a pointer to a class member). It was also a handy way of compressing info by defining a byte structure with the components made up of yes/no bit fields that in total formed the byte.

Totally off-subject but led there by mentioning compression is this completely zany way of encoding and compressing  words into numbers, all one would need to do is to encrypt the numbers to finish with a fairly difficult to break ‘Book Encryption’ routine that would tickle the nerdish fancy of many in GCHQ. (fyi There are ways of moving from Python into C++ especially if you use an Apple.)