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 visiblityin many cases a struct is choosen for POD types
struct
class
public
— 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 —> falseNAN < NAN —> falseNAN > NAN —> false
— I'm concerned about this, we can't really compare NAN