Message from C, C++ discussions

December 2019

— In what cases we use a struct instead of a class?


All the time, in C++ a struct is a class with default public visiblity
in many cases a struct is choosen for POD types

— Purge complete.

— How to make website

— Or app

— But shouldn't I do like,

if (isnan(x)) {
// statements

— This is incorrect syntax.

— Ah sorry go habit

— Now see

— It's same. I'd prefer checking with function, yes.

— NAN == NAN —> false
NAN < NAN —> false
NAN > NAN —> false

— I'm concerned about this, we can't really compare NAN